JavascriptEasy
Language View:

What is the difference between == and === ?

Answer (English)

  • == compares values only.

  • === compares both value and type.

difference
Shipon Hossen RajuShipon Hossen Raju
July 27, 20260 readers0 comments🇧🇩 Bangla

Examples1

1Example 1
console.log(5 == "5"); // true

console.log(5 === "5"); // false

More from

Discussion0

Please sign in to leave a comment.