Skip to Content
0 likes
Arrow Functions in 10 Minutes Level: Beginner

Arrow functions are a shorter way to write a function, and they are everywhere in modern JavaScript. Learn the short forms, the object-return trap, and the one place you shouldn't use them.

0 likes
Debugging With console.log Without Drowning in Output Level: Beginner

console.log is the fastest way to see what your code is doing, until it prints 300 lines and you can't find the one that matters. Label your logs, log objects properly, use console.table and console.group, and clean up before you ship.

0 likes
Fix Form Comparisons That Confuse Blank Input With Zero Level: Beginner

Separate missing, invalid and numeric form input, then compare normalized quantities without treating an empty field as zero.

0 likes
for...of vs for...in: Which Loop for Which Job Level: Beginner

for...of gives you the values of an array. for...in gives you the keys of an object, as strings. Mix them up and you get indexes instead of items, or worse.

0 likes
Fix a Const Assignment Error in a Browser Filter Level: Beginner

Trace a const reassignment inside an input handler, preserve the original list, and verify that filtering and clearing the query both work.

0 likes
Template Literals: Stop Gluing Strings With + Level: Beginner

Backticks and ${} replace most string gluing with +. You get readable text, values inside it, and multi-line strings without \n everywhere.

0 likes
Why "5" + 1 Is "51": Type Conversion in JavaScript Level: Beginner

"5" + 1 is "51" because + joins text before it adds numbers. Convert values on purpose with Number(), String() and parseInt(), check for NaN, and stop letting JavaScript guess for you.

0 likes
Reading "Uncaught TypeError" Without Panicking Level: Beginner

"Uncaught TypeError: Cannot read properties of undefined" means you used a value that wasn't there. Read the message, find the line, check what is actually undefined, then fix the cause instead of hiding it.

0 likes
Fix a Blank Page When Your HTML File Won't Open Right Level: Beginner

Your HTML file opens blank, shows as text, or downloads instead of rendering. Check the extension, the file:// open path, the doctype and a missing closing tag before you rewrite the page.

0 likes
The CSS Box Model in 15 Minutes Level: Beginner

Measure two boxes with the same declared width, calculate padding and border, and reproduce the 100% width overflow mistake before fixing it.

0 likes
Center Something Without Copy-Pasting Stack Overflow Level: Beginner

Compare text alignment, a centred block and two-axis child placement, then test why centering needs available space.

0 likes
Classes vs IDs: Stop Overusing #id for Styling Level: Beginner

Diagnose an ID rule that defeats a reusable note modifier, then keep the ID for navigation while moving presentation to classes.