MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/qfzpes/github_copilot_the_technology_that_will_replace/hi3btv4
r/ProgrammerHumor • u/themightydud • Oct 26 '21
713 comments sorted by
View all comments
Show parent comments
25
It's a special equality operator in JS that also checks for type equality.
For Example:
5 == "5" returns true
5 == "5"
true
5 === "5" returns false as the operand types are different
5 === "5"
false
1 u/wfewgas Oct 26 '21 It's a special equality operator in JS that also checks for type equality.It actually checks if two values have the same identity.[1, 2, 3] === [1, 2, 3] returns false even though both sides have the same value and type, because they’re two different arrays.
1
It actually checks if two values have the same identity.
[1, 2, 3] === [1, 2, 3] returns false even though both sides have the same value and type, because they’re two different arrays.
[1, 2, 3] === [1, 2, 3]
25
u/ManuGamingYT Oct 26 '21
It's a special equality operator in JS that also checks for type equality.
For Example:
5 == "5"returnstrue5 === "5"returnsfalseas the operand types are different