Multiple choice general knowledge science & technology

The _________ command is a standard JavaScript command for printing output to a page.

  1. document.print

  2. document.display

  3. document.write

  4. document.out

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

document.write() is a standard JavaScript method that writes content directly to the HTML document. The other options (document.print, document.display, document.out) are not standard JavaScript methods.