JavaScript blogs
Comprehensive guides to mastering JavaScript and beyond.
Ditch the [].forEach.call NodeList hack
I’ve got to admit before we go any further, I used to use this technique. It looked edgy and cool and I was doing ECMA5 hacks, but after a while an...

Todd Motto
Feb 23, 2014
Stratos.js simplifying Object manipulation
JavaScript Objects are usually the driving force behind applications I develop, specifically JSON which gets sent back and forth from the server as...

Todd Motto
Feb 22, 2014
Join our email community
Developer tips and tricks, motivation, discounts and new course launches.
Mastering the Module Pattern
I’m a massive fan of JavaScript’s Module Pattern and I’d like to share some use cases and differences in the pattern, and why they’re important. Th...

Todd Motto
Jan 29, 2014
Avoiding anonymous JavaScript functions
Anonymous functions, the art of the callback. I’m going to propose that you never write a callback again using an anonymous function, and I’ll sell...

Todd Motto
Jan 19, 2014
Everything you wanted to know about JavaScript scope
The JavaScript language has a few concepts of “scope”, none of which are straightforward or easy to understand as a new JavaScript developer (and e...

Todd Motto
Dec 29, 2013

Stop toggling classes with JS, use behaviour driven DOM manipulation with data-states
Using a class to manipulate the DOM? What about this idea. Using classes have many issues, the main one for me is that adding classes to elements t...

Todd Motto
Dec 17, 2013

A comprehensive dive into NodeLists, Arrays, converting NodeLists and understanding the DOM
Manipulating the DOM is JavaScript’s role when developing websites and applications, and we do this by grabbing collections of elements called Node...

Todd Motto
Dec 12, 2013

Vault.js, HTML5 local session Web Storage API with automatic JSON support
Vault is a 0.6KB standalone HTML5 (local/session) Web Storage API with automatic JSON support. Web Storage only accepts a String as value of an Obj...

Todd Motto
Dec 7, 2013

Smarten your front-end workflow with @conditionizr, screencast on all the APIs
Who’s using Conditionizr? So far we’ve found some teams at Google, Sencha, NASA are some great names using it.

Todd Motto
Nov 26, 2013

Apollo.js, standalone class manipulation API for HTML5 and legacy DOM
Apollo is a <1KB standalone DOM class manipulation API for adding, removing, toggling and testing the existence of classes on an element. Apollo...

Todd Motto
Nov 9, 2013

Understanding Regular Expression matching with .test, .match, .exec, .search and .split
Regular Expressions, often noted as RegEx or RegExp, are seen and used pretty much everywhere in JavaScript. I use them all the time and you’ve pro...

Todd Motto
Oct 29, 2013