NaN Is A Number? || JavaScript Is Hard #2



One thing I always found hilarious is that “typeof NaN” is JavaScript returns as “number”. This sounds a bit ridiculous, but it’s actually pretty helpful to know in some cases, and can lead to some strange bugs if you aren’t careful!

#javascript #coding #webdevelopment #shorts

🔗 My Links
GitHub: https://github.com/TomIsLoading
Twitter: https://twitter.com/TomIsLoading
Instagram: https://www.instagram.com/tomisloading/
TikTok: https://www.tiktok.com/@tomisloading

Leave a Reply

Your email address will not be published.