MCQs > IT & Programming > JavaScript > What construct generally used for in JavaScript? (function () { // ... })();

JavaScript MCQs

What is the following construct generally used for in JavaScript? (function () { // ... })();

Answer

Correct Answer: To create a scope to protect code from the global scope

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it