Algonomy Interview Question

Implement singleton pattern in JavaScript