The currentColor CSS keyword
The currentColor CSS keyword is a nifty alternative to custom properties for simple use cases.
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.
The currentColor CSS keyword is a nifty alternative to custom properties for simple use cases.
You might have heard that line-height should be unitless, but do you know why?
A short summary of your story up to 180 characters long.
A quick reference for inherited CSS properties.
A collection of regular expressions that can be used to solve common problems.
Make sure to use the correct method when checking if a JavaScript object is an array.
Writing about a topic can often sound boring or worthless. But there are significant benefits to doing it from time to time.
Dynamically adding object properties can be pretty slow in some cases. Here's how to optimize it.
Make sure the footer stays at the bottom of the page, instead of floating up when the content is too short.
Did you know that the delay of setTimeout() and setInterval() is merely a suggestion?
Here's a quick and easy way to select the currently focused DOM element in JavaScript.
A short, opinionated CSS reset to make your websites look great everywhere.
Preloading content is one of many ways to improve your website's performance.
Learn what technical debt is, its causes and symptoms, and how to deal with it.
Email address validation can be much trickier than it sounds. Here's why and my advice on how to approach this problem.
Ever wanted to use negative indices in JavaScript arrays? Here's a simple way to do it using a Proxy.
A few tips and tricks to help you filter arrays in JavaScript more efficiently.
JavaScript doesn't have a built-in way to check if a value is blank, but it's easy to create one.
Ever needed to convert a decimal number to hexadecimal? Here's a quick and easy way to do it.
Checking if an array includes a specific value is pretty straightforward, except when it comes to objects.
Have you ever tried to convert the string representation of a boolean to an actual boolean value? Here's a simple way to do it.
Property enumerability dictates how JavaScript object properties behave in different scenarios.
Understanding how to correctly load your JavaScript files can significantly improve your web application's performance.
Array destructuring can be leveraged in many different ways. Here's one of them.