0

What do they mean and how do they work in JavaScript

1. What does this “=“ mean and how does it work or how does it work 2. What does this “==“ mean and how does it work or how does it work 3. What does this “===“ mean and how does it work

1st Apr 2018, 8:28 AM
klisco1
3 Respuestas
+ 2
'=' is for assignement (storing a value in a variable) x = 42 put 42 in variable 'x' '==' is for value comparison '0'==0 is true, 1==2 is false '===' is for strict comparison (compare value and type) 1===1 is true, but '1'===1 is false...
1st Apr 2018, 9:06 AM
visph
visph - avatar
0
Please can you be more specific
1st Apr 2018, 10:56 AM
klisco1