Explore your training options and get exclusive tuition discounts Get Started

X

Back

Learn JavaScript

JavaScript is one of the most widely used programming languages today. These articles and resources will help you learn JavaScript, whether you are looking for a full-time intensive bootcamp course or self-learning online tutorials. Not only do we review various resources to learn JS, but we also provide exercises, comparisons to other coding languages, and individual articles on JavaScript errors and protocols. Finally, we examine if JavaScript is worth learning today.

JavaScript Array: A Guide for Beginners
Let’s create ourselves a list of fruits. We’ll call our list “fruit”, and add the following values: Banana, melon, grapes. Oh, how I love fruit! While this may sound like a tutorial on shopping lists, we’ve actually just created ourselves…
How to Use JavaScript’s getElementById Getter
So, you want to select an element on a web page in JavaScript? That's the specialty of the getElementById method, the so-called king of the element getters in JavaScript. getElementById allows you to select an element based on its ID.…
JavaScript Reverse String Code Challenge
One of the first code/algorithm challenges that we set out to solve as budding software engineers and web developers is to see if we can figure out how to reverse a string. Remember that a string is just a collection…
JavaScript Syntax: A Guide for Beginners
If you’re looking to learn how to write JavaScript, you’ve come to the right place. Every programming language has its own set of rules, just like English. Think about it. When you were in elementary school, you learned the rules…
JavaScript Date and Time: A Guide for Beginners
There’s no escaping the clock, especially in programming. Just as we rely on clocks and watches to keep track of our days, so do programs use time-tracking tools to know what should happen and when. Several applications need to track…
JavaScript Cookies: A Guide
Cookies are both a delicious snack and a crucial part of modern websites.  Cookies allow you to store data about a user in the web browser. Cookies often store information like authentication sessions so the browser remembers you have logged…
JavaScript Objects: A Guide
While lists are a useful method of storing data, they are inconvenient to use when you want to store multiple properties about a specific object in the list. For instance, if you want to store data on all the cookies…
JavaScript Events: Three Ways to Create an Event
Adding interactive features to a website is where JavaScript shines. Whereas HTML and CSS are used to set the structure and styles of a web page, respectively, you can use JavaScript to make your site more dynamic. In JavaScript, events…
JavaScript Math: A Guide for Beginners
Computers are really good at math. It’s in their metaphorical blood, considering computers are powered by the 1s and 0s that we call binary. When you’re coding, there’s probably going to be a time when you want to perform some…
Map JavaScript: A Guide to the .map() Method
Programmers like to reduce repetition in their code. The more you repeat your code, the less maintainable it is, and the slower your programs will run. That’s the reason why there are various methods in JavaScript to iterate through datasets.…
querySelector JavaScript: A Guide
getElementById. getElementByClass. You may have heard about these functions before. They both allow you to select a particular element in JavaScript. Once you’ve selected an element you can change its contents, modify its state, or even make it disappear. There’s…
JavaScript Default Parameters: A Beginner’s Guide
Default parameters make working with functions a whole lot easier. Using default parameters, you can tell your functions what parameters they should use in the case that you haven’t specified any. This can help avoid errors and makes your code…
JavaScript localStorage: A Guide
Web applications can get very complicated, very quickly. One thing I’ve learned in my time as a developer is that there’s a lot you can do with plain old JavaScript if you give it the chance. The localStorage API is…
How to Use Async and Await in JavaScript
Introduced in ES6, Promises allow you to easily write asynchronous code without having to deal with different callback functions. With Promises, there’s no need to worry about multi-level callback functions which are both difficult to write and maintain. There’s another…
JavaScript Console: A Guide for Beginners
Writing code, while entertaining, can also become quite tedious. There are days when you start writing code, realize something is not running, and get very frustrated. Even more annoying is when your code runs, but you can't figure out why…
JavaScript Countdown Timer: A Tutorial
Countdown timers are used all over the Internet by people who want to count down to a major event. You could use a countdown timer to count down to the launch of your new website. A countdown timer could mark…
JavaScript Arrow Functions: A Step-By-Step Guide
JavaScript arrow functions are a way of declaring functions. Arrow functions can be used to write JavaScript functions more efficiently and using more concise syntax. Arrow function syntax supports implicit returns for single expressions. A function is a block of…
How to Make axios GET and POST Requests
When you’re building a web application, there may come a time when you want to perform a HTTP request to access an external resource. For instance, suppose you are making a blog. You may want to call an API to…
JavaScript forEach Loops Made Easy
The JavaScript forEach loop is an Array method that executes a custom callback function on each item in an array. The forEach loop can only be used on Arrays, Sets, and Maps. If you’ve spent any time around a programming…
JavaScript startsWith and endsWith: A Complete Guide
The JavaScript startsWith method will return true or false if a string starts with a specified character or string. JavaScript endsWith works the same way but applies to the end of a string. Both accept parameters that effect where the…
JavaScript Includes: A Step-By-Step Guide
The JavaScript includes() method determines whether a list includes a specified item. The includes() method takes one parameter, the value to check for in a list. includes() will return true if that value is present, and false if it's not.…
Top 5 JavaScript Frameworks to Learn
If you’ve spent any time working with JavaScript, you’ll know there are a lot of frameworks available for you. React.js, Vue.js, and Angular are three examples of the hundreds of other options. Having access to a wide range of frameworks…
How Long Does it Take to Learn React JS?
Learning new skills is an important part of remaining viable as a worker in the technology industry. In the tech industry, the people who are acquainted with the latest and greatest developments are constantly engaged in projects. If you are…
A Step-By-Step Guide to JavaScript Let
Let in JavaScript is one of three ways to declare a variable. JavaScript let is used to declare block scope variables and cannot be reassigned or redeclared. The let variable is best used for loops. Variables are an essential part…
JavaScript indexOf: A Step-By-Step Guide
The JavaScript indexOf() method returns the position of an item in a list or a substring in a string. The indexOf() JavaScript method returns -1 if a specified value does not appear in a list or string. Only the index…
A Step-By-Step Guide to JavaScript Comments
JavaScript comments are used to write notes in your code or to disable sections of code without deleting them. Comments are made in JavaScript by adding // before a single line, or /* before and */ after multiple lines. Commenting…
JavaScript Find: A Step-By-Step Guide
The JavaScript find() function returns the first element in a list that meets a given requirement. The function is useful for finding specific values in an array. When working with JavaScript, you may want to retrieve a specific value from…
JavaScript toUpperCase and toLowerCase
The JavaScript toLowerCase() method returns a string without any uppercase letters. Similarly, the toUpperCase() method returns a string without any lowercase characters. Both accept a string and return that string in a different case. When you’re working with a string…
JavaScript typeof
Data types are used to store a particular type of data in a programming language. For example, strings can be used to store text-based data in code, whereas numbers can be used to store integers and floating-point numbers. When you’re…
JavaScript Variables
Variables are an integral part of almost every programming language, and are usually one of the first topics you’ll learn when you start coding. Variables can be used to store data in a program, such as strings, numbers, JSON objects,…
Start your Tech training
Find, compare, and enroll in the right training program. Save on Tuition.
View my matches