A month or so ago, I was trying to split a string, but no matter what that string had in it, the split method just returned undefined. I spent 2 hours trying to figure out why I couldn't get it to work. I finally posted on a Slack team asking why it wasn't working. Turns out, I was using square brackets instead of parentheses for no discernible reason. It was pretty embarrassing, especially considering how long I've been writing JS.
Jason Knight
The less code you use, the less there is to break