Earlier posts
Page 2 of 3
How many ways can we reverse an Array?
There's a Stage 3 proposal to add several array methods including Array.prototype.toReversed, which will create a reversed copy of the array.
2 min read
Comparing
constdeclarations and immutable objectsWay back in my Java days, when interviewing candidates, I would often ask the candidate to explain the meaning of the final keyword.
5 min read
Promise Tips: When do I need to create my own Promise instance?
Promises are pretty ubiquitous these days, but sometimes Promise based code is more complex that it needs to be.
4 min read
Comparison of JavaScript modules
JavaScript has been around since 1995. In that time there have been several different ways to create modules.
Using Animations with Tailwind CSS
Tailwind CSS is awesome. Animations are awesome. So let's combine them! It's really easy to define your own custom animations with Tailwind.
2 min read
JavaScript Maps vs Plain JavaScript Objects
ES2015, also known as ES6, added lots of new things to the JavaScript language. One very useful addition was the Map. Map allows you to map keys to values. Couldn't we already do that?
2 min read
Introduction to Flexbox
All the cool kids may be using CSS Grid now, but there are still plenty of scenarios where Flexbox does exactly what you need.
Introduction to Custom Elements
Custom elements have pretty good browser support. Of course, they aren't supported in Internet Explorer, but that shouldn't surprise anyone.
2 min read