Quick Coding Facts

Got 30 seconds? Great — that’s all you need to learn something new!

Destructure and Keep the Rest

You can combine destructuring and rest syntax to extract what you need and keep the rest.

const { id, ...info } = { id: 1, name: "Alice", role: "Admin" };
console.log(info);      // { name: "Alice", role: "Admin" }

Skipping Array Elements with Destructuring

When using destructuring, you can skip the fields you’re not interested in — but you must keep the commas, e.g.:

const [ , second ] = ["Alice", "Olivia", "Ella"];
console.log(second); // "Olivia"

This allows you to “skip” array elements without creating extra variables.

Event propagation

Event propagation is the way events travel through the DOM tree. There are two directions of propagation:

Capturing phase (downward) – the event moves from the document element down to the target element that triggered it.

Bubbling phase (upward) – the event moves from the target element back up the DOM tree until it reaches document.

Falsy values

8 Falsy values that always evaluate to false:

false, null, undefined, "", 
0, -0, 0n, NaN 

Remember: empty array [] is truthy!

This collection of programming coding tips is a quick and easy way to learn something new – perfect for busy developers. No long explanations, no boring theory — just short, useful info in a “Did you know…” style.

You’ll find both basic things every programmer should know (at least in theory – but let’s be honest, our memory isn’t perfect and we often need Google or AI), and some funny or surprising facts that even experienced devs will enjoy.

Whether you’re just starting out, have been coding for years, or just like clicking on smart-looking stuff – there’s something here for you.

Get ready for a smile, a few “ah, now I get it!” moments, and maybe even a “good to know!”.

WARNING: Side effects may include sudden coding inspiration and a strong desire to share what you’ve learned with every developer around you.