Not so Weird Parts of Javascript - Part 1
Do you know, In Javascript 1 == '1' will give true as output whereas 1 === '1' gives false?
Well, the reason behind this is,The ==(double equals) does type conversion first followed by a comparison of values, whereas ===(triple equals) does the same ...
shafikhan.hashnode.dev1 min read