Tables displaying the issue:
and ==
Moral of the story use ===
table generation credit: https://github.com/dorey/JavaScript-Equality-Table
More Related Contents:
- What are bitwise operators?
- Is && statement() the same as if() statement()?
- Logical operator || in javascript, 0 stands for Boolean false?
- When to use the double not (!!) operator in JavaScript
- What is the purpose of new Boolean() in Javascript?
- In javascript, is an empty string always false as a boolean?
- Converting string “true” / “false” to boolean value [duplicate]
- Convert boolean result into number/integer
- How to fire jQuery function only if form is valid
- Why if([]) is validated while [] == false in javascript?
- How to toggle a boolean?
- How do I chop/slice/trim off last character in string using Javascript?
- Recursive function returns undefined
- Can scripts be inserted with innerHTML?
- Prevent images from loading
- How do you handle oncut, oncopy, and onpaste in jQuery?
- How can I take advantage of callback functions for asynchronous XMLHttpRequest?
- Check element CSS display with JavaScript
- Alert when browser window closed accidentally
- Center/Set Zoom of Map to cover all visible Markers?
- Differentiate IE7 browser and browser in IE7 compatibility mode
- Throwing an Error in jQuery’s Deferred object
- Add inline style using Javascript
- How to use parameters within the filter in AngularJS?
- orderByChild not working in Firebase
- Electron – Setting up IPC communication between main and renderer processes
- 1.265 * 10000 = 126499.99999999999? [duplicate]
- Reading multiple files with Javascript FileReader API one at a time
- Rename Object Key in an array using javascript
- Function Called Multiple Times in AngularJS Repeat Section