“This” in any programming language is a strange concept to understand due to the ambiguity of the definition. Simply put, because This is used in many different ways it is difficult to precisely define. The best way to learn this is to learn the many different ways in which this…
Slice Vs Splice in JavaScript (A Quick Guide)
The array in JavaScript is one of the most widely used data structures and array methods allow for a variety of data manipulation libraries. When you first start JavaScript it may be difficult to know the difference between slice() and splice(). The slice method takes an array and returns a…
Basic CRUD Array Operations in JavaScript
Sometimes it pays just to stick to the basics. Here are CRUD operations for a basic array: 1. Create an element to the end of an array 2. Delete an element from the end of an array 3. Reading an index from an element in an array 4. Update an…
Spread Vs Rest Operator in JavaScript Explained Simply
Since the invention of “…”, JavaScript has never been the same and is the one of the core functionalities of functional programming. The “…” can either be called spread or rest depending on where and how it is being used. Let’s look at specific examples of when to use a…
Object Literal in JavaScript
An object literal is simply a plain old JavaScript object that consists of key-value pairs. In the tutorial we will learn how to create objects using object literal with examples. Object Literal Syntax The object literal notation is: Object literals can store complex values, numbers, strings, functions, and nested objects….
Immutability in JavaScript
Immutability is a popular concept not just in JavaScript, but most programming languages in general. The reason behind this of course is functional programming which gives software developers a brand new paradigm to utilize when coding. Let’s dive into the details of mutability and immutability. What is Mutability? A mutable…
Numbers in JavaScript In-Depth
A large part of a programmer’s life will be spent using numbers. Luckily for us, the computer does most of the mental calculations. In this blog post, I will give an easy introduction to numbers in JavaScript and an in-depth look at how numbers work. Using Numbers in JavaScript In…
Hoisting In JavaScript Explained Simply
JavaScript is a weird language. We are all aware of this. But one of the biggest peculiarities is the concept of hoisting. Because hoisting is centered around variable declaration, it confuses beginners to no end. In this blog, I am going to give practical, real-world explanations of hoisting! Hoisting Introduction…
A Gentle Intro To Prototypal Inheritance in JavaScript
If you have every used any modern IDE like VSCode, you may be familiar with “Intellisense”. “Intellisense” is essentially a fancy tool that allows us to see what methods are available to us on an object. Because of prototypal inheritance, we get access to all of the awesome methods even…
JavaScript Closures: A Beginner Guide
Learning closures and how they work under the hood will greatly increase your ability to write JavaScript code. Before learning closures, it is important to have a good understanding of scope. What is Scope? Scope determines the accessibility or visibility of variables in JavaScript. There are three types of scope…