New course! Every coder should learn Generative AI!
Try a free lesson0
What is identical (===)?
1 Answer
+ 7
It checks if the value and the types are identical.
== only checks if the values are identical, so "2" == 2 is true.
But "2" === 2 is false.