Year: 2022

Recent Post

Detect an ad blocker with pure JavaScript

How to detect if a user is blocking ads using JavaScript.

A guide to manipulating the DOM like a pro with JavaScript

Memorize these techniques to manipulate the DOM like a pro!

How to iterate through a JavaScript object

JavaScript objects are extremely common, but also notoriously difficult to iterate through.

How to shuffle an array in JavaScript

How to create a function that shuffles the order of array elements.

How to create a strongly random password generator

Create a cryptographically strong random password generator.

The this keyword in JavaScript (simple explanation)

The 'this' keyword is a versatile reference to a parent data object.

Check if a number is odd or even in JavaScript

Create a utility function to perform a check of whether a number is odd or even.

How to remove the last character from a string in JavaScript

Use the negative indexing of the slice method to remove the last character from a string.

Make fetch GET, POST, PUT and DELETE requests in a single line

Reduce the amount of code needed to make HTTP requests using fetch.

Truthy and falsy values in JavaScript

There are seven values in JavaScript that convert to Boolean false in a logical statement