JavaScript's numeric separators explained
Numeric separators are a somewhat lesser-known JavaScript syntactic sugar that can make working with large constants a lot easier.
30 seconds of code contains a curated collection of code articles covering a wide range of development needs. The collection spans many topics, ranging from simple coding problems to theoretical concepts and development techniques.
Numeric separators are a somewhat lesser-known JavaScript syntactic sugar that can make working with large constants a lot easier.
Did you know there's an easy way to create a descending list of numbered items with pure HTML? Learn how with this handy tip.
Strings in JavaScript can be escaped in various ways. But how do you prevent a string from being escaped? Here's a handy trick for that.
An Immediately Invoked Function Expression (IIFE) is a JavaScript trick that trips up many developers. Here's what you need to know.
There are many ways to iterate and transform array data in JavaScript. Learn how each one works and where you should use them.
Learn the differences between JavaScript ES6 arrow functions and regular functions and how they affect event listener callbacks.
Pick up a few new tricks which you can use to clone arrays in JavaScript.
Learn how to use the JavaScript ES6 spread syntax to converting iterables to arrays and level up your code today.
Asynchronously looping over arrays in JavaScript comes with a few caveats you should watch out for.
Level up your JavaScript logging with these console.log()
tips and tricks.
Learn the differences between the three most commonly used iteration methods in JavaScript, that often confuse beginners and veterans alike.
Enums are part of TypeScript, but what about defining enums in plain old JavaScript? Here are a few way you can do that.
JavaScript arrays have a very robust API offering some amazing tools. Learn the 4 must-know JavaScript array methods in this quick guide.
JavaScript's this
keyword can confuse beginners and veterans alike. Learn how it works in different scenarios and start using it correctly.
Learn everything you need to know about promises and asynchronous JavaScript with this handy cheatsheet.
Understand how events work in JavaScript and learn when to use event bubbling, event capturing and event delegation with this short guide.
Ever wanted to get the value of an HTML input element as a number? Learn an easy way to do it with this handy trick.
Did you know you can define an iterator for any JavaScript value? This quick tip will show you how.
JavaScript arrow functions are a very useful tool to learn and master. Here's a complete introduction to everything you need to know.
When working with stateful code, you can run into issues realted to complexity and readability. Oftentimes, they are easily fixable.
If you need to check if Caps Lock is on when the user is typing in the browser, JavaScript's got you covered.
Accessibility (a11y) can improve your website and attract new users. Learn how to get started with these 8 quick tips.
ESLint is a really useful tool, but sometimes it gets in the way. Learn how to refactor code to get rid of a common warning.
JavaScript's Boolean function can be used for truth-checking data among other things. Learn how to use it and level up your code today.