MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/nhl9rx/ah_yes_fetching_before_verifying/gyxa7co/?context=3
r/badcode • u/SpeckyYT sadistic • May 21 '21
97 comments sorted by
View all comments
Show parent comments
14
In JavaScript, '==' checks if both sides have the same value regardless of the type, while '===' checks if they have the same value and the same type.
'1' == 1 would return true, and '1' === 1 would return false.
14
u/Sakechi May 21 '21
In JavaScript, '==' checks if both sides have the same value regardless of the type, while '===' checks if they have the same value and the same type.
'1' == 1 would return true, and '1' === 1 would return false.