I'm Todd, I teach the world Angular through @UltimateAngular. Conference speaker and Developer Expert at Google.

Simple forEach implementation for Objects/NodeLists/Arrays

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 construct each loop and pass...

Read more Simple forEach implementation for Objects/NodeLists/Arrays

Understanding the “this” keyword in JavaScript

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 around until my script...

Read more Understanding the “this” keyword in JavaScript

Writing a standalone Ajax/XHR JavaScript micro-library

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 document’s content or fetching updated JSON...

Read more Writing a standalone Ajax/XHR JavaScript micro-library

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

Read more Ditch the [].forEach.call(NodeList) hack

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 acts as the main method of comms....

Read more Stratos.js simplifying Object manipulation

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. The Module Pattern is what...

Read more Mastering the Module Pattern

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 you the idea now. Firstly,...

Read more Avoiding anonymous JavaScript functions

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 even some experienced JavaScript developers). This...

Read more Everything you wanted to know about JavaScript scope

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 to change their...

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

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 NodeLists. NodeLists are captured using a selector of some...

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