Created
February 19, 2016 02:02
-
-
Save tolawho/01b6aeba2365c2503289 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Equality</title> | |
<script type = "text/javascript"> | |
var x = 42; | |
var y = "42"; | |
if (x ===y) { | |
document.write("x is equal to y with a strict test."); | |
} else { | |
document.write("x is not equal to y"); | |
} | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment