MCQs > IT & Programming > JavaScript > What does the code write to the console? var x = false; if (x && console.log('hello')) { console.log('done'); }

JavaScript MCQs

What does the following code write to the console? var x = false; if (x && console.log("hello")) { console.log("done"); }

Answer

Correct Answer: Nothing

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