Finding ways to improve and optimize your code takes a lot of time, research and energy. Level up your coding skills one step at a time with this collection of quick tips and tricks.
Iteration in JavaScript can be done a handfuld of ways, most often using array methods, but sometimes a for
loop is the best option.
JavaScript, Array · Jun 12, 2021
Increase your JavaScript code's performance when working with the DOM by leveraging this simple trick.
JavaScript, Browser · Jun 12, 2021
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.
JavaScript, String · Sep 14, 2022
Learn how to use the cubic-bezier()
class of easing functions and create beautiful animations that stand out.
CSS, Animation · Jun 12, 2021
A short summary of your story up to 180 characters long.
CSS, Visual · Nov 23, 2022
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.
JavaScript, String · Jun 17, 2021
Ever wanted to create your own jquery-like query selector shorthand? Here's how!
JavaScript, Browser · Jun 12, 2021
Learn how to swap the values of two variables in JavaScript using a single line of ES6 code.
JavaScript, Variables · Jun 12, 2021
Learn two ways to format a string in Python with this quick tip.
Python, String · Jun 12, 2021
Learn how to make your CSS transitions feel perfect when users interact with elements on the page with this simple tip.
CSS, Interactivity · Jun 12, 2021
You might have heard that line-height
should be unitless, but do you know why?
CSS, Layout · Nov 27, 2022
Implement responsive typography with the CSS clamp() function.
CSS, Visual · Dec 28, 2022
You can use a CSS pseudo-class selector to style all links in a page, without worrying if they have been visited or not.
CSS, Visual · Mar 6, 2022
Discover how to improve your website's performance by implementing lazy loading for images using a native HTML attribute.
HTML, Image · Jun 12, 2021
Here's a quick and easy way to select the currently focused DOM element in JavaScript.
JavaScript, Browser · Oct 23, 2022