Javascript Articles

Sorted By: Most Recent
Ali Raza Ali Raza
Updated on September 05, 2023

npm ci vs. npm i: Install Node Modules Faster

npm ci performs a clean install of all existing dependencies, whereas npm install attempts to update current dependencies when possible.

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
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