Skip to content
Maker's Aid Logo

Maker's Aid

  • Apps & How-to’s
  • Gear & Guides
  • Digital & Growth
  • UX & Design
  • Web & Code

Category: JavaScript

How to Set Cookies With JavaScript

Ready to become a JavaScript cookie monster? Let’s get those cookies set and show the browser who’s boss.

Published January 13, 2023By Dim Nikov
Categorized as JavaScript

How to Start Learning JavaScript

Start your coding journey off on the right foot by learning the basics of JavaScript. Check out our latest article on where to begin.

Published December 16, 2022By Dim Nikov
Categorized as JavaScript

Convert Node List to Array in JavaScript

Learn how to convert a NodeList object to an Array in this no-B.S. tutorial.

Published November 23, 2022By Dim Nikov
Categorized as JavaScript

How to Get Today’s Date in JavaScript

Not sure how to get today’s date and time in JavaScript? This guide will walk you through the process step by step and with code samples.

Published October 19, 2022By Dim Nikov
Categorized as JavaScript, Web & Code

Troubleshoot Unexpected Identifier Errors in JavaScript

No, you’re not trying to solve the unsolvable. Here’s how to handle unexpected identifier errors in your JavaScript code.

Published October 19, 2022By Dim Nikov
Categorized as JavaScript, Web & Code

How to Calculate String Length in JavaScript

Calculating a string’s length in JavaScript, for beginners. Everything you need to know (and nothing you don’t).

Published October 19, 2022By Dim Nikov
Categorized as JavaScript, Web & Code

How to Calculate Tax With JavaScript

The best way to calculate tax with JavaScript (and the pitfalls to watch out for as you do).

Published October 18, 2022By Dim Nikov
Categorized as JavaScript, Web & Code

How to Iterate Over a Map Object in JavaScript

Are you stuck? Don’t worry, we’ve got you. We’ll show you how to iterate over a map object in JavaScript like a pro.

Published October 18, 2022By Dim Nikov
Categorized as JavaScript, Web & Code

How to Get an Object’s Class Name in JavaScript

You might not know this, but JavaScript isn’t a class-based programming language as other languages are. So let’s talk about your options.

Published October 18, 2022By Dim Nikov
Categorized as JavaScript, Web & Code

Check If a String Contains a Substring in JavaScript

Does your string contain ___? There’s a simple way to check. Here’s how to search strings for substrings like a pro.

Published October 18, 2022By Dim Nikov
Categorized as JavaScript, Web & Code

How to Check If a Variable Is/Is Not Null in JavaScript

Not quite sure how to check if a variable is (or isn’t) null in JavaScript? Don’t worry, we got you. This guide will show you the ropes.

Published October 17, 2022By Dim Nikov
Categorized as JavaScript, Web & Code

How to Convert Map to Array in JavaScript

This tutorial will show you how to convert a Map object’s keys, values, or key/value pairs to an Array object in JavaScript.

Published October 17, 2022By Dim Nikov
Categorized as JavaScript, Web & Code

Declare vs. Assign in JavaScript

What’s the difference between declaring a constant or variable and assigning it a value? Here’s everything you need to know.

Published April 12, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

How to Get URL Parameters in JavaScript

How to get all or one of the parameters from the URL of the current page in JavaScript with vanilla JavaScript.

Published April 11, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

How to Get the Page Path in JavaScript

This tutorial will show you how to get the current page path in JavaScript (and more).

Published April 10, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

How to Get the Current Domain Name in JavaScript

This tutorial will show you how to get the current domain name in JavaScript (and more).

Published April 9, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

How to Declare a Global Variable in JavaScript

The two ways to declare a global variable in JavaScript, inside and outside of a function.

Published April 8, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Remove Special Characters From a String in JavaScript

Remove special characters from any string with the String.replace() method and well-written RegEx. We show you how!

Published March 29, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

What Is a Data Layer?

A web developer’s introduction to the data layer, a must-have for advertising and marketing on websites and web applications.

Published March 28, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Event Listeners for Multiple Elements in JavaScript

Here’s how to add an event listener for multiple DOM elements in JavaScript.

Published March 27, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

How to Get the Href of a Clicked Link in JavaScript

Learn how to get the href attribute of any, or specific, clicked links in JavaScript.

Published March 27, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

How to Get the Class of a Clicked Element in JavaScript

Learn how to get the class of any, or specific, DOM element that the user clicks by creating an event listener.

Published March 27, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

How to Get the ID of a Clicked Element in JavaScript

Learn how to get the id of any, or specific, DOM element that the user clicks by creating an event listener.

Published March 27, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Array to String Without Commas in JavaScript

How to convert an array into a string without commas with the Array.join() method in JavaScript.

Published March 27, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

How to Run JavaScript on a Mac (4 Ways)

Want to run JavaScript code on your Mac? Here’s how to do it in the Terminal and from your browser.

Published March 26, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Check If a String Has Only Numbers in JavaScript

So you need to implement validation for your app’s frontend or backend. Here’s how to do it with RegEx.

Published March 26, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Removing All Commas From a String in JavaScript

So you need to remove commas from a string in JavaScript? These are the two best ways to achieve this.

Published March 23, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Create an Array of Images in JavaScript (Tutorial)

The best ways to create and use arrays of images in JavaScript.

Published March 22, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Check If a Button Is Clicked in JavaScript

This is the best way to listen to click events for a button element.

Published March 20, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Is Inline JavaScript Bad?

Wondering whether to inline your JavaScript code or load it externally from a file? We help you decide.

Published March 20, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Why Is My JavaScript Not Working? (With Examples)

We round up the most common causes for your JavaScript code not working.

Published March 20, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Log the User Out on Closing the Browser in JavaScript

Want to log out your user after they’ve closed the tab or window? Here’s how you could do this in JavaScript.

Published March 20, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Set an Attribute Without a Value in JavaScript (Tutorial)

The best ways to set an empty attribute to one or multiple DOM elements in your HTML markup, with plain JavaScript.

Published March 19, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Remove Quotes From String in JavaScript

We look at the simplest, most straightforward way to remove quotes from a string in JavaScript.

Published March 15, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Pass PHP Array to JavaScript (Tutorial)

It turns out you can get PHP and JavaScript to agree on something, and that something is the JSON data format.

Published March 14, 2022By Jim Stonos
Categorized as JavaScript, PHP, Web & Code

Nested Arrays in JavaScript, Explained

You asked for it, we delivered. We explain nested arrays in a way that anyone, from beginner to expert, can understand.

Published March 13, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

How to Declare an Empty Array in JavaScript

Here’s how to declare an empty array object in JavaScript—and what you need to do so that it meets your needs.

Published March 13, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Function Not Defined in JavaScript (How to Fix It)

ReferenceErrors are annoying. These common mistakes and clues to look for will help you get to the meat of it.

Published March 13, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Alphabet Array in JavaScript (Tutorial)

The simplest, most straightforward ways to create an array of letters in the English alphabet in JavaScript.

Published March 13, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Find the Largest Number in an Array in JavaScript

The quick and easy way to find the largest number in an array in JavaScript.

Published March 13, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Quotes Within Quotes Within Quotes in JavaScript

There’s a way to nest string in two or more quotes in JavaScript, and you will love the simplicity of it.

Published March 12, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Adding a New Line in JavaScript (Tutorial)

Still learning? These are the best ways to add a new line to your JavaScript code’s output.

Published March 11, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

How to Repeat a String in JavaScript (Tutorial)

In JavaScript, it’s easier to repeat a string an n number of times than you probably think. Here’s how to do it.

Published March 11, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Check If an Element Has a Class in JavaScript

So you’re looking for a good way to check if a DOM element has a CSS class in JavaScript?

Published March 10, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

Check If String Is Empty in JavaScript

Find out the two best ways to check whether a string is empty or not in JavaScript.

Published March 9, 2022By Jim Stonos
Categorized as JavaScript, Web & Code

About

We publish growth advice, technology how-to’s, and reviews of the best products for entrepreneurs, creators, and creatives who want to write their own story.

Learn more →

Disclaimer

Maker's Aid is a participant in the Amazon Associates, Impact.com, and ShareASale affiliate advertising programs.

These programs provide means for websites to earn commissions by linking to products. As a member, we earn commissions on qualified purchases made through our links.

Explore

  • Apps & How-to's
  • Audio & Visual
    • Photography
  • Digital & Growth
    • Ads
    • Analytics
    • Blogging
    • Copywriting
    • Marketing
  • Gear & Guides
  • News
  • UX & Design
    • Canva
    • Photoshop
  • Web & Code
    • CSS
    • Domains & Hosting
    • HTML
    • JavaScript
    • PHP
    • WordPress
Maker's Aid Logo
  • Home
  • About Us
  • Contact Us
  • Sitemap
  • Terms of Use
  • Privacy Policy
Copyright © Maker's Aid, 2020 — 2023