MCQs > IT & Programming > JavaScript > How does the this keyword work within a JavaScript Object literal?

JavaScript MCQs

How does the this keyword work within a JavaScript Object literal?

Answer

Correct Answer: <script> Var foo = {}; Foo.someMethod = function(){ Alert(this); } </script>

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