JavaScript Tutorials

JavaScript setTimeout and setInterval: A Guide

setTimeout() and setInterval() are JavaScript timing events. The JavaScript setTimeout() method executes a function after a period of milliseconds. JavaScript setInterval() executes a function continuously after a certain period of milliseconds have passed. JavaScript runs line-by-line. As soon as one…

JavaScript innerHTML and innerText: A Guide

You’ll need to know how to change the text or the HTML that appears on the page to make your sites more interactive. That’s where the innerText and innerHTML HTML attributes come in. These attributes make it easy to change…

JavaScript: Refresh Page

Sometimes you need to refresh a webpage using JavaScript. If the need arises, use the location object to use the reload() method. There are two event listeners in this document. The first happens when the page loads to add an…

JavaScript Format Currency (intl.numberformat)

In JavaScript, the Intl.NumberFormat() method is used to specify a currency we want a number to represent. The method is a constructor that can be used to format currency in its style property.  This article states how we use the…

How to Use Substring in JavaScript

The JavaScript substring() method retrieves a range of characters between two index positions. You can use substring() to retrieve characters to the end of a string by omitting an end index position. A substring is a smaller portion of a…

JavaScript Filter: A Step-By-Step Guide

The JavaScript() filter method creates an array of elements from an existing array. The filter() method accepts a callback function as an argument. This function evaluates whether an element should be added to the new list from the existing one.…

JavaScript For Loop: A Step-By-Step Guide

A JavaScript for loop executes a block of code as long as a specified condition is true. JavaScript for loops take three arguments: initialization, condition, and increment. The condition expression is evaluated on every loop. A loop continues to run…

JavaScript Sleep Method Doesn’t Exist: What to Use Instead

If you’re an engineer or developer coming from different programming languages, you might have used a native method called sleep() to stall or pause a method from executing. JavaScript doesn’t have such a native method.  In this article, we will…

JavaScript GET Request: Using the Fetch API

Developers often have to retrieve data from their own API or third-party API. This article talks about using your browser’s Fetch API to GET some data from an endpoint. What is the Fetch API?  The Fetch API is an interface…

Higher Order Functions in JavaScript: A Guide

As a developer, you have likely used regular JavaScript functions. Called first order functions,  they don’t take in a function as a parameter or return a function. This article talks about higher order functions (HOF). These are functions that help…

Get matched modal

Find the best bootcamp for you

Our matching algorithm will connect you to job training programs that match your schedule, finances, and skill level.