Learn the language of the web.

Recent Post

Check if a value is an object in JavaScript

How to create a conditional that checks if a value is a pure object in JavaScript.

How to remove duplicate array values

Two ways you can remove duplicate values from an array.

Currency formatting in JavaScript

How to convert a numeric values to a currency value using the native Internationalization API.

Create a unique ID in JavaScript

Create a unique ID to identify a user or session with an embedded creation timestamp.

Merging several strings into one in JavaScript

Learn how to merge multiple strings into one in various formats, including a comma-separated list.

== vs === in JavaScript

Loose and strict equality operators help us test for a similarity between bits of data.

Self-executing functions in JavaScript

Self-executing functions are ideal for making a one-time process self-contained.

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.