MCQs > IT & Programming > JavaScript > What's the output? var book; (function () { var title = 'Azom Kack'; book = { getAuthor: function () { return author; } }; }());

JavaScript MCQs

What will be the output when the following code is executed?

var book;

(function () {

var title = “Azom Kack”;

book = {

getAuthor: function () {

return author;

}

};

}());


Answer

Correct Answer:

undefined

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