• Post author:
  • Post category:Blog
  • Reading time:1 mins read
  • Post last modified:June 12, 2024

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.

For more Questions and Answers:

JavaScipt Essentials 1 (JSE) | JSE1 – Module 1 Test Exam Answers Full 100% 

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments