Multiple choice javascript

How do you put a message in the browser's status bar?

  1. window.status = "put your message here"

  2. statusbar = "put your message here"

  3. status("put your message here")

  4. window.status("put your message here")

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

The browser's status bar can be accessed via window.status property. Option A correctly assigns a string to window.status. Option B uses an undefined 'statusbar' variable. Option C calls a non-existent status() function. Option D incorrectly treats status as a function rather than a property.