xxxxxxxxxx
/**
* In js :
* == it convert the variable values to the same data type before performing comparison.
* example : comparison between string and interger data type
*/
(5 == "5") // returns true
// === it does not convert data type of variable before performing comparison.
// example:
(5 === "5") // return false
xxxxxxxxxx
(0 == '0') // true
(0 === '0') // false
('' == 0 ) // true, the string will implicitly be converted to an integer
('' === 0 ) // false, no implicit cast is being made
xxxxxxxxxx
(==)[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
xxxxxxxxxx
== Equal to (1 == 1, 1 == "1") // equal in value ("1" is a string)
=== Equal value and equal type (1 === 1 but, 1 !== "1" // not equal type
xxxxxxxxxx
{
"version": "0.1.0",
"command": "node",
"isShellCommand": true,
"args": [
"--harmony"
],
"tasks": [
{
"taskName": "runFile",
"suppressTaskName": true,
"showOutput": "always",
"problemMatcher": "$jshint",
"args": ["${file}"]
}
]
}