Multiple choice

Finish the code below to write the message "I'm a programmer!" to a web page:

  1. document.write("I'm a programmer!"))

  2. document.write("I'm a programmer!");

  3. document.write("I'm a programmer!)

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

In JavaScript, statements must end with a semicolon to be syntactically correct.