πŸ”₯ There are 433 Hot Tips!!

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.

πŸ”₯ Make a webcam photobooth app in about 15 lines of JavaScript

698121018K
82310613294

πŸ”₯ Format relative time amounts - like "2 seconds ago" - with the JS Intl.RelativeTimeFormat() API

1.4K19726424

πŸ”₯ Use TypeScript's never to enforce "one or the other" properties on a type

1K10220202
6.7K185116125K

πŸ”₯ Emojis like πŸ‘¨β€πŸ‘§β€πŸ‘¦ and πŸŽ…πŸΏ are actually made up of multiple emojis and a special character called a β€œZero Width Joiner”

2.2K27418251

πŸ”₯ Weird one: Any HTML element can be visible and editable with display:block; and contenteditable - including style tags!

14K2.1K1502.8K
81K4.1K435729K

πŸ”₯ You don't need a library to format money in JavaScript!

Use Intl.NumberFormat() to format all currencies and locales around the world.

1.6K24319395
1.6K412727K

πŸ”₯ TypeScript's never is great for making sure you hit every scenario when coding an if/else or switch statement

1.7K17738293
3.5K1047081K

πŸ”₯ You can create a Type Guard in TypeScript by using the is keyword in a functions return type.

455441084
801153120K

πŸ”₯ The difference between any and unknown in TypeScript:

394451268

πŸ”₯ Text Pastry is a super handy plugin for inserting incremental numbers at each cursor.

Available for VS Code, Sublime + more

29625856
1.2K301721K