Skip to main content

Matt Smith

  • About
  • Contact
Web Dev | Front-End Engineer | UX Designer

How JavaScript’s at() method makes array indexing easier

May 19, 2025
2 min read
2478 views

Working with arrays in JavaScript is an everyday thing for front-end developers. We reach for arrays constantly, whether we’re rendering lists, managing state, or juggling DOM elements. But what if I told you there’s a more elegant way to access elements at a specific index, especially the last one? Now...

  • JavaScript

The power of the spread and rest syntax in JavaScript

May 5, 2025
2 min read
4910 views

It’s a fair bet that most web developers regularly encounter the three dots (...) in their code. Sometimes it magically copies arrays, sometimes it gathers up function arguments, and sometimes it shows up in object literals like it’s casting a spell. Say hello to the spread syntax and rest parameter,...

  • JavaScript
  • React

When to use map() vs. forEach()

April 21, 2025
1 min read
2703 views

I saw this post on Reddit about a JavaScript coding assessment and it got me thinking. A common task developers perform is iterating over arrays. And two of the most frequently used methods for this are map() and forEach(). Both seem similar, but the differences can significantly affect how your...

  • JavaScript
Newer posts Older posts
Twitter
LinkedIn
GitHub
CodePen
© 2025 Matt Smith. All rights reserved.