Yogendra Kumar V Ryogendrakumarvr.hashnode.dev·Apr 26, 2023Why JavaScript is Like No Other Language: An Inside Look at its Weirdest FeaturesAvoid Creating Variables Using var console.log(varVariable) // undefined var varVariable = 10; console.log(varVariable) // 10 Variables created with var are hoisted meaning the declaration is moved to the top of their scope before code execution. In...100 readsJavaScript
Gauravalpha-geek.hashnode.dev·Dec 10, 2022Weird Behavior of isNaN() in JavaScript.In this article, I have covered** 9 scenarios to check how isNaN() is behave with different inputs**. Let's see it one by one : I have divided this article into 2 parts A) isNaN() working as per our expectation. B) Weird behavior of isNaN(). A) isNa...1 like·52 readsjavascript fun