Multiple choice technology web technology

To what value will the following expressions evaluate in the JavaScript console? null == undefined

  1. false

  2. true

  3. none of the above

  4. All of the above

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

In JavaScript, null and undefined are loosely equal (== returns true) but strictly equal (=== returns false). This is because they represent different concepts but both represent 'empty' or 'absent' values.