Type of Undeclared Variable in JavaScript: What is it?

  Have you ever thought, what is type of undeclared variable in JavaScript? I know, the first thing that might come to mind is: how can an undeclared variable have a type? Yes, in JavaScript it is possible. To understand it, let us start with understanding types in JavaScript. There are seven built in types in JavaScript. … Continue reading Type of Undeclared Variable in JavaScript: What is it?

undefined and null in JavaScript

Have they ever asked you? “Can you explain null and undefined in JavaScript?” This question is very trivial but important. As a JavaScript developer, you must have absolute understanding on undefined and null. Let us start by looking at code below: https://gist.github.com/debugmodedotnet/62fc783b3dd79f3feec4b6c87f04d077 Output of above code listing would be “undefined” as shown in the image … Continue reading undefined and null in JavaScript

Get it right: null and undefined in JavaScript

Well, whenever I talk to developers, I find them in confusion about null and undefined in JavaScript. In this post I try to simplify understanding of null and undefined in JavaScript. To start with null is language keyword and undefined in value of a variable. Both evaluates to value that indicates absence of a value. … Continue reading Get it right: null and undefined in JavaScript