John wants to run below demo.js file using 'node demo.js' in node environment. Please select the correct output for the below code.

demo.js 

console.log("Tom"); document.write("Mary");

Tom Mary

Mary Tom

Mary

Reference Error

Verified Answer
Correct Option - d

To get all Infosys Certified Node Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram