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!
While these two properties are very similar, there are some key differences that you should be aware of.
Trailing commas are not without controversy. Here's why I think you should use them.
Scroll listeners can easily become a performance bottleneck for your web application. Here's how to fix that.
Learn everything you need to know about Big-O notation with this handy cheatsheet.
A quick reference for the
Document.elementFromPoint() to easily get the element at a specific point on the page.
A custom data structure to keep track of value frequencies in an array.
A collection of regular expressions that can be used to solve common problems.
Dynamically adding object properties can be pretty slow in some cases. Here's how to optimize it.
Did you know that the delay of
setInterval() is merely a suggestion?