Understanding Strict vs. Loose Comparison in Javascript


Use === and !== for strict comparison without type conversion.

Source Code

console.log(1 === "1"); // false
console.log(1 == "1"); // true
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments