Javascript Articles

Sorted By: Most Recent
Richmond Alake Richmond Alake
Updated on December 06, 2024

Bubble Sort Time Complexity and Algorithm Explained

Bubble sort is a sorting algorithm that uses comparison methods to sort an array. It has an average time complexity of O(n^2). Here’s what you need to know.

Image: Shutterstock / Built In
Reza Lavarian Reza Lavarian
Updated on December 05, 2024

Error: Cannot Find Module in Node Solved

Error: cannot find module most commonly occurs when a non-existent module is attempting to be loaded in Node. Here’s how to fix it.

Image: Shutterstock / Built In
Collins Mutai Collins Mutai
Updated on December 04, 2024

How to Pass Data With EventEmitter in Angular

EventEmitter() is a class in Angular that’s used to pass values from the child component to the parent component. Here’s how it works. 

Image: Shutterstock / Built In
Akshay Kumar Akshay Kumar
Updated on November 20, 2024

A Guide to Callback Functions in JavaScript

A callback function in JavaScript is a function that’s called after the first function has completed its task. Learn more about how they’re used and when to use them.

Image: Shutterstock / Built In
Odumosu Matthew Odumosu Matthew
Updated on November 12, 2024

How to Format Dates in JavaScript

JavaScript offers a variety of ways to format dates, including using the date object, intl.DateTimeFormat and a number of date libraries. Here’s how to use each one. 

Image: Shutterstock / Built In
Jayanth Somineni Jayanth Somineni
Updated on November 11, 2024

How to Make API Calls in React With Examples

An API call in React refers to making a request to a web API from a React application. We can make an API call with: XMLHttpRequest, Fetch API or Axios.

Image: Shutterstock / Built In
John Au-Yeung John Au-Yeung
Updated on November 07, 2024

How to Loop Through JavaScript Associative Arrays

There are three common ways to loop through a JavaScript associative array object, including the for-in loop, object.entries with forEach and the for-of loop. Here’s how.

Image: Shutterstock / Built In
Sukanta Das Sukanta Das
Updated on November 06, 2024

How to Set Up TypeScript in an Express App

TypeScript can be used to build an Express app through a tsconfig.json file, which provides a series of compiler files. Here’s how to set it up.

Image: Shutterstock / Built In
Abdullah Bashir Abdullah Bashir
Updated on November 05, 2024

Prisma Build “Environment Variable Not Found: DATABASE_URL” Error Solved

Prisma “environment variable not found: DATABASE_URL” error occurs when there’s a disconnect between the schema and the environment variables. Learn to solve it.

Image: Shutterstock / Built In
Shashwat Nautiyal Shashwat Nautiyal
Updated on November 04, 2024

A Guide to ESLint, Prettier, Husky and Lint-Staged

ESLint, Prettier, Husky and lint-staged are code editing tools that can be used to correct errors and format code for consistency pre-commit. Here’s how they work. 

Image: Shutterstock / Built In