MCQs > IT & Programming > JavaScript > function foo() { this = 'foo'; } var a = foo(); What will the preceding code produce?

JavaScript MCQs

function foo() { this = "foo"; } var a = foo(); What will the preceding code produce?

Answer

Correct Answer: ReferenceError: Invalid left-hand side in assignment

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