JavaScript Tutorials

JavaScript String Contains: Step-By-Step Guide

You can check if a JavaScript string contains a character or phrase using the includes() method, indexOf(), or a regular expression. includes() is the most common method for checking if a string contains a letter or series of letters, and…

JavaScript alert() Method

The JavaScript alert() method, also known as Window.alert(), displays an alert dialog box to a user. It accepts an optional message argument to display a message with an OK button to the user. Common uses for alert() are to let…

How to Disable a Button Using jQuery

There are many reasons to disable a button in a web application. Whether it’s to prevent a user from adding a sold out item to their shopping cart, or not allowing the user to click a button after an action…

How jQuery each() Works

jQuery each() is a concise way to iterate over DOM elements. Each() method is designed to be called on the target jQuery object. A jQuery object is an object that contains one or more DOM elements and has access to…

How to Use the jQuery html() Method

jQuery has many methods available to help developers efficiently create a dynamic web experience. The jQuery html() method replaces all HTML inside of the selected element. This is useful if you want to dynamically change what the user is seeing…

JavaScript Array Contains: A Step-By-Step Guide

The JavaScript includes() method searches an array for an item. This method returns True if the element in the array exists. The filter() method lets you find an item in a list. Unlike includes(), the filter() method returns the item…

JavaScript Concatenate Strings: A Guide

The JavaScript concat() method merges the contents of two or more strings. You can also use the + concatenation operator to merge multiple strings. The concatenation operator is preferred in most cases as it is more concise. Concatenation is a…

How to Use the JavaScript += Operator

The JavaScript += operator adds two values together and assigns the result to a variable. This operator is called the addition assignment operator. It is more convenient than the regular variable = X + Y syntax. A plus sign and…

How to Use jQuery get()

A cornerstone of building a web application is using HTTP requests. HTTP requests allow data to be captured from a user input then sent through the back end to a server.  Afterwards, a response is returned. Sometimes these requests send…

JavaScript: MultiLine Strings Using \n and Template Literals

You can create a JavaScript multiline string using new line characters, concatenation, and template string literals. Template string literals are the most modern syntax and also let you embed variables into a string. Have you ever wanted to span a…

Tell us about you and we will match you with top rated bootcamps with flexible payment options, income sharing (ISAs), or money-back guarantees.

Career Karma

Find the right bootcamp for you

By continuing you indicate that you have read and agree to
Career Karma Terms of Service and Privacy Policy

X
A person sitting on a dark green chair with a laptop on their knee