Need to grab the second item from an array? Here are two (of many) ways to do that with destructuring! Since arrays are objects, you can use the index as a property to destructure it

JavaScript

One of my fav emmet expansions is quickly generating a bunch of HTML with item numbering.

HTML
Tools

🔥 Use Emmet in JavaScript to quickly value bump variables

Editors

🔥 You can set and use variables inside a CSS declaration. Handy for when you need the same value more than once!

JavaScript

Motion to standardize resolve, reject params as `ya, nah`

JavaScript

🔥 VS @code has a built in diffing tool you can run from the command line with --diff

Editors

Made the mistake of storing podcast episode numbers with leading zero (octal, no decimal). Learned about toString(8)

JavaScript

🔥 The difference between Array.of() and Array.from()

JavaScript

🔥 :nth-last-child() will give you nth-child but start counting from the end.

CSS

The download attribute is handy when you want things to force a download of a file without using server side rules. 101:

HTML

🔥 If you are ever working on a site that messes with built-ins, you can get fresh copies by creating an iframe with no src

JavaScript

🔥 Super handy CSS Clip Path generator → https://t.co/6nXe1txk3k

CSS

The tweet will be reviewed and posted as soon as possible

{{ newSnippetForm.errors.url[0] }}

{{ newSnippetForm.errors.categories[0] }}