Hot tips are spicy lil' nuggets related to web development and tooling that I share on my twitter account. I've logged them here to make them easier to find.
Page 18 of 45
π₯ Use CSS :where() to select multiple children inside a parent selector.
:where()
Super handy for H1 β H6 and selecting all inputs inside a form.
π₯ Since Arrays are Objects in JavaScript, you can use object destructuring on an array to get values like first, middle and last.
first
middle
last
π₯ Ever try sort a list of strings, but get tripped up by capitals and accented characters?
Use JavaScriptβs Collator API!
π₯ 3 neat things you can do with Array destructuring in JavaScript
I got banned from LinkedIn for writing JS π
π₯ Stop using rm -rf to delete files on your computer.
rm -rf
Use trash instead
trash
π₯ Make a webcam photobooth app in about 15 lines of JavaScript
π₯ Format relative time amounts - like "2 seconds ago" - with the JS Intl.RelativeTimeFormat() API
Intl.RelativeTimeFormat()
π₯ Use TypeScript's never to enforce "one or the other" properties on a type
never
π₯ Emojis like π¨βπ§βπ¦ and π πΏ are actually made up of multiple emojis and a special character called a βZero Width Joinerβ
State of JS 2025