1. Home
  2. Computer Science MCQs
  3. Javascript
  4. Which JavaScript method is used to print content?

Added 20 Jan 2024

Which JavaScript method is used to print content?

  1. print()
  2. console.log() Correct answer
  3. display()
  4. write()

Correct answer

B. console.log()

14 views

MCQSEXAM

Explanation

The console.log() method is used to print content to the console.

Reference

Asked in: Web Development Certification

https://www.w3schools.com/js/js_output.asp

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Javascript MCQs

Practise all Javascript MCQs

Similar MCQs