Category: FAQs

Recent Post

How to redirect to another web page using JavaScript

How to send a user to another page immediately upon page load or with a countdown delay.

How to print a JavaScript array to the DOM

Learn how to print a JavaScript array to the DOM in readable format.

Check if a HTML input element contains (no) user input

How to check if a user has provided input to a HTML input element.

How to sort an array of objects by the value of a property in JavaScript

Learn how to sort an array of objects by the value of a property.

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.

Remove element from a JavaScript array by value

How to remove an element array element by value with and without mutating the original array.

Check if a value is an object in JavaScript

How to create a conditional that checks if a value is a pure object in JavaScript.

How to remove duplicate array values

Two ways you can remove duplicate values from an array.

Currency formatting in JavaScript

How to convert a numeric values to a currency value using the native Internationalization API.