= and === in javascript code example
Example 1: === javascript
// === means equal value and equal type
var x = 5
// true
x === 5
// false
x === "5"
Example 2: === in js
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
var x = abc;
document.getElementById("demo").innerHTML = (x === "ABC");
</script>
</body>
</html>