#ActuallyAutistic web dev. Does front of the front-end. Loves perf and minimalism. Prefers HTML, CSS, Web Standards over JS, UX over DX. Hates div disease.
The only thing I'd like to add is that this is the only case you should ever use == for comparison, and always otherwise use ===. This is a good rule to follow especially if you're working without TypeScript or other type enforcement tool as it greatly reduces bugs caused by mixing datatypes.
The only thing I'd like to add is that this is the only case you should ever use
==
for comparison, and always otherwise use===
. This is a good rule to follow especially if you're working without TypeScript or other type enforcement tool as it greatly reduces bugs caused by mixing datatypes.Good point! Updating the post.