0

Can someone please explain to me what's the differences between these and what and when they are used for?

1. == and === 2. != and !==

17th Jul 2016, 6:23 AM
Azwan Abdullah
Azwan Abdullah - avatar
4 odpowiedzi
+ 2
Identical(===) and Not Identical(!==) compare both type and value, but == and != only compares the value. So if you compare an integer 10 with a string "10" === returns false but == returns true.
1st Aug 2016, 7:08 AM
Sumitabha Banerjee
Sumitabha Banerjee - avatar
+ 1
x === y is "x equals y" == is a bit more complicated. it's a logical process known as XOR. it finds out if two things are the same, usually used when we want to know if x is true and y is also true, or when x is false and y is also false. that's when we use [ if (x == y)] ! is the "not" wherever you put it
22nd Jul 2016, 2:58 PM
Dr.Na'el Hariri
Dr.Na'el Hariri - avatar
0
x+28.8 y++-23
5th Sep 2016, 2:08 PM
Dell Smith
Dell Smith - avatar
0
what great average denomation +++45.23
5th Sep 2016, 2:09 PM
Dell Smith
Dell Smith - avatar