+ 2
Hi everyone, what are the differences between =, ==, and === in JavaScript ?
= sign in JS
4 Antworten
+ 19
1) = is used for assigning values to a variable in JavaScript.
2) == is used for comparison between two variables irrespective of the datatype of variable.
3) === is used for comparision between two variables but this will check strict type, which means it will check datatype and compare two values.
+ 3
https://www.sololearn.com/learn/JavaScript/1131/
https://www.sololearn.com/learn/JavaScript/1132/
+ 1
THANKS 😉