Learn the language of the web.

Recent Post

How to copy text to the clipboard (and read it) in JavaScript

How to copy text content to a user's clipboard.

Load another JavaScript file from within a JavaScript file

Dynamically load another JavaScript file from within a JavaScript file.

Append an element to the DOM as nth child using insertBefore

Using insertBefore, an element can be appended to the DOM as a middle child.

Using the async and defer script tag attributes

Learn how script tags with the async or defer attributes are processed.

Narwal

Narwhal franzen fixie, pitchfork church-key normcore dreamcatcher YOLO umami celiac art party next le

Flannel DIY Fabby Chic

Knausgaard flannel DIY shabby chic, unicorn cray tilde freegan pinterest typewriter franzen stumptown

Kombucha

Kombucha fixie polaroid, XOXO cred mustache jean shorts mlkshk heirloom. Cliche stumptown tote bag no

Baby Unicorns

I’m baby unicorn flannel adaptogen, tousled waistcoat fingerstache tofu echo park post-ironic s

Writing HTML in JavaScript made easy with template literals

With template literals, it is easy to write blocks of HTML in JavaScript.

The spread operator (the three dots of JavaScript) and its uses

The spread operator lists the contents of an iterable in a comma-separated list.