Javascript Articles

Sorted By: Most Recent
Jayanth Somineni Jayanth Somineni
Updated on August 04, 2025

Different Ways to Display Images in React.js Apps

Learn different ways of including images in React.js applications. Display great imagery, no matter your code’s style.

Image: Shutterstock / Built In
Dr. Derek Austin Dr. Derek Austin
Updated on August 04, 2025

How to Check for Null in JavaScript

Null represents an intentional absence of a value, indicating a variable has been declared but has yet to be assigned a value. These are some of the most common methods for checking for null and values loosely equal to null in JavaScript.

Images: Shutterstock / Built In
Trung Thanh Le Trung Thanh Le
Updated on July 29, 2025

How to Get the Last Element of an Array in JavaScript

There are several ways to get the last element of a JavaScript array, including length property and square bracket notation, slice() method and pop() method. Here are nine methods to try.

Image: Shutterstock / Built In
Dr. Derek Austin Dr. Derek Austin
Updated on July 17, 2025

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
Ezekiel Oladejo Ezekiel Oladejo
Updated on July 08, 2025

How to Fix ‘__dirname Is Not Defined in ES Module Scope’

The ”_dirname is not defined in ES module scope” error occurs when you use _dirname in an ES module. Here’s how to fix it. 

Image: Shutterstock / Built In
Kacper Michalik Kacper Michalik
Updated on June 23, 2025

19 Programming Project Ideas: From Simple Scripts to Full Apps

Programming projects can help developers expand their skills and deepen their tech stack knowledge. Here are a variety of project ideas from beginner to advanced to sharpen your skills. 

Image: Shutterstock / Built In
Dr. Derek Austin Dr. Derek Austin
Updated on June 17, 2025

How to Use JSON.stringify() and JSON.parse() in JavaScript

JSON.stringify() and JSON.parse() are useful tools for handling JSON-formatted content in JavaScript, though they have some limitations. Here's how to use them.

Image: Shutterstock / Built In
Estefanía García Gallardo Estefanía García Gallardo
Updated on June 17, 2025

What Is AJAX (Asynchronous JavaScript and XML)?

AJAX is a web development technique that can make websites faster and more responsive to user input, which creates a better user experience. Here’s how AJAX works and how you can get started.

Image: Shutterstock / Built In
David Koff David Koff
Updated on June 16, 2025

Install Node.js: A Tutorial

Node.js is an JavaScript runtime that works on multiple operating systems and is useful for both front- and back-end applications. This tutorial explains how to install it on your machine.

Image: Shutterstock / Built In
Anthony Corbo Anthony Corbo
Updated on June 16, 2025

What Is JavaScript?

JavaScript is a high-level, interpreted programming language that operates on both the client side and the server side in order to make web pages interactive.

Image: Shutterstock / Built In