Tag: null
-
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.…
-
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: This file contains bidirectional Unicode text that may be interpreted or compiled differently than…
-
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.…