Hi, friends. As you know JavaScript is a kind of weird language, at least it seems like for the first time. And what I am going to do is to improve your impression with this category of articles. So welcome to the Weird JavaScript.
And in this first post we are going to talk about equals operator (==
). Is there anything can be unclear here? Definitely, everything is understandable for you, just make sure you can answer this questions without any hesitation.
1 == '1' [] == false false == {} NaN == NaN +0 == -0 null == null null == undefined [] == []
If you are not sure in your answers or you just want to get the results, this short post is worth your attention.
Continue reading “Weird JavaScript: How Equals Operator Works”