Multiple choice technology programming languages

What is the output of the below JavaScript?


var bol = new Boolean();        
alert(bol);     

  1. false

  2. true

  3. error

  4. None of the above

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

The new Boolean() constructor creates a Boolean object with a default value of false. When alerted, it displays 'false'. Note that using Boolean as a constructor (with new) is generally not recommended - use Boolean() as a function or literal values instead.