Using JavaScript, we want to display the word "test"
in the console. What statement do we use to do this?
console (log, "test");
console.log("test");
console("test");
log("test");
Answers Explanation & Hints:
To display the word “test” in the console using JavaScript, you would use the statement: console.log("test"); The
console.log() function is a built-in function in JavaScript that outputs a message or value to the console. In this case, it will display the string “test” in the console. |