MCQs > IT & Programming > JavaScript > What will be logged in the console? let a = { [ 'foo_' + (() => 1)() ]: 2 }; console.log(a);

JavaScript MCQs

What will be logged in the console? let a = { [ 'foo_' + (() => 1)() ]: 2 }; console.log(a); 

Answer

Correct Answer: { foo_1: 2 }

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