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
To get all Infosys Certified Node Developer Exam questions Join Telegram Group https://grateful.prepflix.in/infy-lex-pdfs