Javascript Algorithms Articles

Sorted By: Most Recent
K. Jagathish K. Jagathish
Updated on April 01, 2024

How to Use URLSearchParams in JavaScript

URLSearchParams is a JavaScript API that allows users to retrieve and work with data in the URL query parameters. Learn how to use it.

Image: Shutterstock / Built In
Alex Zelinsky Alex Zelinsky
Updated on February 16, 2024

3 Ways to Find the Maximum Value in a JavaScript Array

Arrays are a versatile structure in JavaScript that holds multiple data types. Find the maximum value in an array using for loop, math.max() and the reduce method.

Image: Shutterstock / Built In
Muhammad Hasan Muhammad Hasan
Updated on December 13, 2023

What Are the Three Dots (...) in JavaScript?

The three dots (...) in JavaScript is known as the spread operator, and it’s used to make shallow copies of JavaScript objects.  

Image: Shutterstock / Built In
Rory Spanton Rory Spanton
Updated on July 13, 2023

How to Use the Ternary Operator in JavaScript

The ternary operator is a concise way of expressing conditional statements in a single line of JavaScript code. Our expert explains how it works.

Image: Shutterstock / Built In
Dr. Derek Austin Dr. Derek Austin
Updated on June 28, 2023

JavaScript Question Mark (?) Operator Explained

The question mark operator is used in JavaScript as an alternative to an if statement, especially where a value is assigned based on a conditional.

Image: Shutterstock / Built In
K. Jagathish K. Jagathish
Updated on May 11, 2023

JavaScript PreventExtensions Method Explained

The preventExtensions method in JavaScript prevents new properties from being added to an object by marking it non-extensible. Here’s what you need to know.

Image: Shutterstock / Built In