Javascript Relational Operators Question 4

Introduction

What is the output of the following code?

console.log(3 === 3);            // 
console.log("3" === "3");        // 
console.log("3" === 3);          // 
console.log(false === 0);        // 
console.log(null === 0);         // 


true
true
false
false
false

Note

=== means strict equality

no coercion used

returns false if values compared are of different data types




PreviousNext

Related