MCQs > IT & Programming > JavaScript > What's the output? var test = function test(){ console.log('2' - - '2'); }; test();

JavaScript MCQs

What will be the output of the following code snippet?

var test = function test(){
console.log("2" - - "2");
};
test();


Answer

Correct Answer: 4

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