JavaScript icon Get 69% off the JavaScript Master Bundle!

See the bundle then add to cart and your discount is applied.

days
hours
mins
secs
What function window, document, undefined - window, document really means image

What function window, document, undefined - window, document really means

Todd Motto image

Todd Motto

Jun 3, 2014

In this post, we’re going to explore what the title suggests, and offer explanations as to what this self invoked function setup gives us.

Understanding JavaScript types and reliable type checking image

Understanding JavaScript types and reliable type checking

Todd Motto image

Todd Motto

Jun 2, 2014

Type checking in JavaScript can often be a pain, especially for new JS developers. I want to show you how to reliably check types in JS and underst...

Simple forEach implementation for Objects NodeLists Arrays image

Simple forEach implementation for Objects NodeLists Arrays

Todd Motto image

Todd Motto

May 14, 2014

Looping Objects is easy. Looping Arrays is also easy. Looping NodeLists is easy. They can be a little repetitive though and often take time to cons...

Understanding the 'this' keyword in JavaScript image

Understanding the 'this' keyword in JavaScript

Todd Motto image

Todd Motto

Apr 12, 2014

It’s probably safe to say that the this keyword is one of the most misunderstood parts of JavaScript. Admittedly, I used to throw the this keyword ...

Writing a standalone Ajax XHR JavaScript micro-library image

Writing a standalone Ajax XHR JavaScript micro-library

Todd Motto image

Todd Motto

Mar 31, 2014

Whether you’re working with websites or applications, you’re bound to have faced a task dealing with Ajax requests, whether it be getting a new doc...

Ditch the .forEach.call NodeList hack image

Ditch the .forEach.call NodeList hack

Todd Motto image

Todd Motto

Feb 23, 2014

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...

Stratos.js simplifying Object manipulation image

Stratos.js simplifying Object manipulation

Todd Motto image

Todd Motto

Feb 22, 2014

JavaScript Objects are usually the driving force behind applications I develop, specifically JSON which gets sent back and forth from the server as...

Mastering the Module Pattern image

Mastering the Module Pattern

Todd Motto image

Todd Motto

Jan 29, 2014

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...

Avoiding anonymous JavaScript functions image

Avoiding anonymous JavaScript functions

Todd Motto image

Todd Motto

Jan 19, 2014

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...

Everything you wanted to know about JavaScript scope image

Everything you wanted to know about JavaScript scope

Todd Motto image

Todd Motto

Dec 29, 2013

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...

Stop toggling classes with JS, use behaviour driven DOM manipulation with data-states image

Stop toggling classes with JS, use behaviour driven DOM manipulation with data-states

Todd Motto image

Todd Motto

Dec 17, 2013

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...

A comprehensive dive into NodeLists, Arrays, converting NodeLists and understanding the DOM image

A comprehensive dive into NodeLists, Arrays, converting NodeLists and understanding the DOM

Todd Motto image

Todd Motto

Dec 12, 2013

Manipulating the DOM is JavaScript’s role when developing websites and applications, and we do this by grabbing collections of elements called Node...