JavaScript Arrow Functions and this scoping

JavaScript Arrow Functions and this scoping

We've learned about the concise syntax of arrow functions. We've learned about the implicit return of arrow functions. The last thing we're...

When Not to use an Arrow Function

When Not to use an Arrow Function

Before you start going absolutely bananas on using arrow functions everywhere, we need to chat. Arrow functions don't replace regular...

More Arrow Function Examples

More Arrow Function Examples

Let's look at a couple more JavaScript arrow function examples.

JavaScript Arrow Functions Introduction

JavaScript Arrow Functions Introduction

ES6 has introduced arrow functions which have three main benefits. First, they have a concise syntax. Secondly, they have implicit returns,...

Is var Dead? What should I use?

Is var Dead? What should I use?

We've learned about let and const — what they do, and how they're scoped. We also know when they can be reassigned and when they cannot,...

Temporal Dead Zone ☠️

Temporal Dead Zone ☠️

Let's talk real quick about the Temporal Dead Zone. This is a bit of a boring topic, so I'm going to try and make it at least a little fun...

ES6 Block Scope is The new IIFE

ES6 Block Scope is The new IIFE

You can probably see where let and const are going to be useful: if you need to scope something to a block, or if you want to make a...

Quick Tip -  Use let with for Loops in JavaScript

Quick Tip - Use let with for Loops in JavaScript

The other problem using let and const will fix is with our for loop.

ES6 let VS const variables

ES6 let VS const variables

In the last post we learned all about how scoping works with JavaScript let, const and var variables.

How let and const are scoped in JavaScript

How let and const are scoped in JavaScript

There are a couple new ways to declare variables in ES6 that help us out with scoping. We can declare variables with var, which we've...