Sollicitatievraag bij CodeMonkey

What is the difference between '==' and '===' in JS?

Antwoord op sollicitatievraag

Anoniem

7 okt 2019

'==' = a loose equality operator. It equates 2 objects based on their value. '===' = a strict equality operator. It equates 2 objects based on their value as well as their type. 1=="1" is true, yet 1==="1" is false.