Category: Intermediate JavaScript

Recent Post

How to Remove Duplicate Objects from an Array

When deciding which method to choose, object type should be taken into account.

How to Remove Falsy Values from an Array

How to remove falsy values or only some falsy values.

How to check if a property exists in a JavaScript object

Learn methods for searching an object and its prototype for the existence of properties.

Insert an element or HTML block before or after an existing element

Using the insertAdjacentElement() or insertAdjacentHTML() methods.

What’s wrong with using ‘var’ in JavaScript?

Using 'var' to declare variables can lead to scope leakage and silent errors in your code.

Emptying a JavaScript array

Emptying an array is easy, but methods vary in their impact on references made to the array in other

Find the index of an element in a JavaScript array by value

Get the index value of any element in an array by value and instance of its appearance.

Self-executing functions in JavaScript

Self-executing functions are ideal for making a one-time process self-contained.

Higher-order array methods with simple examples: map, filter, sort and reduce

Use flexible higher-order array methods to help achieve your programming objectives.

All you need to know about JavaScript arrow functions

Arrow functions use efficient syntax but are best avoided when using "this"