MCQs > IT & Programming > JavaScript > What the problem with the code ? function runner() { this.run = function() {} }; var runnerCollection = new Array(); for(var i = 0 ; i < 1000 ; i ++) { runnerCollection.push(new runner()); }

JavaScript MCQs

What the problem with the code ? function runner() { this.run = function() {} }; var runnerCollection = new Array(); for(var i = 0 ; i < 1000 ; i ++) { runnerCollection.push(new runner()); }

Answer

Correct Answer: function run is duplicated in memory

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