Articles in this series
Arrow functions are a new way of writing a traditional function. This way the function is shorter and quicker to write. Arrow functions were introduced in ES6. Let's see how we write functions in a traditional way: const sum = function(a, b) { retu...
Just so you know: Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution. Let's understand the hoisting for different variable declarations and function: Hoisting of v...
A scope is an area/limit where your variables stay and can only be accessed by other parts of the code in the same area/limit. Sounds confusing? Let's take a simple example to understand this: let age = 50; // global scope function restoreMyYouth() ...
Primitive and non-primitive data types in Javascript
Variables in JavaScript are like containers that hold reusable data. These data containers need to be declared with some specific keywords in Javascript. Right now there are 3 ways to declare a keyword in JavaScript: var (older/outdated way) let (in...
JavaScript is a loosely typed, interpreted scripting language. It is one of the most powerful and popular programming languages in the world. Most of the websites today are using Javascript. It is literally hard to imagine the World Wide Web today wi...