substr vs. substring in JavaScript

The difference between substr vs. substring in JavaScript bites me more often than any other API confusion in the language. The only difference is in the second parameter. Do you know what each of these will return? var word = "The quick brown fox";...

What’s new in Chrome DevTools 2016

I just finished watching this awesome video from Google I/O in which Paul Irish and Sam Saccone profiled a few websites and talked about some great new Chrome DevTools features that are available now on Chrome Canary. If you want to watch the whole video, check it out...

What is page jank?

What is page jank? According to the Jank Free website: Jank is any stuttering, juddering or just plain halting that users see when a site or app isn’t keeping up with the refresh rate. So, essentially, if your users ever notice any awkward movements on your...

Throttling events with setTimeout

Time and time again, we need to listen for an event (scroll, keyup) and execute some arbitrary code when that event fires. If you do this enough, you’ll likely run into a situation where you are just receiving way too many events. In these cases, it’s best...

Best ways to learn React.js

React.js is definitely the most popular JavaScript framework these days. I’ve spent a good amount of time using a lot of different resources to learn it and I thought it would be cool to share those with you! Egghead.io Price – $19.99 per month Description...

Moment.js, get the next day of the week

Moment.js is a JavaScript library that helps you do pretty much anything you could ever need with dates! Specifically, it helps you parse, validate, manipulate, and display dates in JavaScript.   Today I was writing a little program and I needed to find the date...