MCQs > IT & Programming > JavaScript > What's the output? if ('foo') { console.log('foo' === false); console.log('foo' === true); }

JavaScript MCQs

What will happen in the console after executing this code? if ("foo") { console.log("foo" === false); console.log("foo" === true); }

Answer

Correct Answer: false false

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