Which of the following will implement a singleton pattern in JavaScript?
Correct Answer: <script> var anObject = { method1: function () { // ... }, method2: function () { // ... } }; </script>
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions