Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

== vs === in javascript

(==)[double equal]compare the only DATA , not TYPE (0(int) == "0"(string)) ==> true) ==> not checking DATATYPE 
(===)[triple equal ] compare strictly  DATA and TYPE (0 === "0" ==> false) ==> checking the DATATYPE first
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
9+3 =