What does the below code print out?
if (undefined == null) {
console.log("Moo")
} else {
console.log("Zoo")
}They are actually values that can be checked for equality
Moo
// What does the below code print out?
console.log(typeof(null));It should be “null” but javascript incorrectly reports the type of null as “object”.
object
// What does the below code print out?
if (undefined === null) {
console.log("Moo")
} else {
console.log("Zoo")
}undefined and null are not the same types so === will return false
Zoo
// What will the below code print out?
console.log(NaN == "1");NaN equal to ANYTHING is always false, even when compared to itself
False