MCQs > IT & Programming > JavaScript > What's the output? ? var val = 'var global'; function constructFun() { var scope = 'var local'; return new Function('return val'); } constructFun()());

JavaScript MCQs

Consider the following code output? var val = "var global"; function constructFun() { var scope = "var local"; return new Function("return val"); } constructFun()());

Answer

Correct Answer: Error

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