The coding articles collection contains curated stories, tips, questions and answers on a wide variety of topics. The main focus of these articles revolves around the languages and technologies presented in snippets, as well as career advice and lessons.
Which method do you reach for first? What are the differences between them? Let's find out!
JavaScript, Array · Mar 26, 2023
While these two properties are very similar, there are some key differences that you should be aware of.
JavaScript, Browser · Mar 19, 2023
Trailing commas are not without controversy. Here's why I think you should use them.
JavaScript, Webdev · Mar 12, 2023
Scroll listeners can easily become a performance bottleneck for your web application. Here's how to fix that.
JavaScript, Browser · Mar 7, 2023
A short guide on how to correctly construct a URL in JavaScript.
JavaScript, String · Feb 26, 2023
Learn everything you need to know about Big-O notation with this handy cheatsheet.
JavaScript, Algorithm · Jan 8, 2023
A quick reference for the window.location
object.
JavaScript, Browser · Dec 21, 2022
Using Document.elementFromPoint()
to easily get the element at a specific point on the page.
JavaScript, Browser · Dec 18, 2022
Avoid the naive approach and use a more robust method to edit URL parameters in JavaScript.
JavaScript, String · Dec 7, 2022
Locale-sensitive string splitting and truncation are finally possible in JavaScript.
JavaScript, String · Dec 4, 2022
A custom data structure to keep track of value frequencies in an array.
JavaScript, Class · Nov 13, 2022
A collection of regular expressions that can be used to solve common problems.
JavaScript, String · Nov 9, 2022
Make sure to use the correct method when checking if a JavaScript object is an array.
JavaScript, Type · Nov 6, 2022
Dynamically adding object properties can be pretty slow in some cases. Here's how to optimize it.
JavaScript, Object · Nov 2, 2022
Did you know that the delay of setTimeout()
and setInterval()
is merely a suggestion?
JavaScript, Browser · Oct 26, 2022