
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Explore declaring variables with let and const in ES6, compare them to var, and learn when to use const for immutable values and let for changing ones with practical examples.
Explore how variables are accessed in JavaScript through global and local scopes, including function scope, block scope, and lexical scope, and show how var, let, and const influence visibility.
Explore how ES6 introduces for...of and for...in loops to iterate over arrays, strings, and objects. Use const in these loops for safe, scoped iteration, printing elements or keys and values.
Explore how ES6 template literals interpolate variables into strings, replacing concatenation for cleaner code. Learn how to inject expressions with ${...} inside the string to produce the final output.
Learn how template literals enable multi-line strings by wrapping text in backticks, replacing old string concatenation and newline characters, and producing cleaner, multi-line output in JavaScript.
Explore arrow functions in ES6 JavaScript, replacing the function keyword with concise syntax and parameters; learn anonymous function expressions, template literals, and single-line arrow functions for clean, reusable code.
Learn how object property shorthand in ES6 simplifies creating objects by using variable names as keys, reducing code from verbose key-value pairs to concise syntax, demonstrated with a wardrobe example.
Explore object freezing in ES6 by examining const behavior, mutability of objects and arrays, and how to mutate object properties while primitive strings stay immutable.
Discover how to prevent object mutation with Object.freeze, which returns the original object and, in strict mode, throws an error when attempting changes.
Learn how array destructuring in ES6 simplifies extracting first, second, and fourth elements from arrays, skipping indices, and using the rest operator to collect remaining values.
Explore object destructuring in ES6 by unpacking object properties into independent variables using curly braces, with examples showing name and owner from a cat object.
Understand how object destructuring handles undefined properties by selecting non-existent fields, yielding undefined variables without errors. Rename properties with colon syntax and use the rest operator to collect remaining properties.
Explore nested object destructuring in ES6 by building an array of objects with properties like name, owner, color, age, and kittens. Learn how to structure these nested data structures.
Explore nested object destructuring in ES6 by extracting the second object's cat name, Bob, from an array and switching between square brackets and curly braces for nested structures.
Destructure function parameters to pick object properties from arguments, using curly braces in the parameter list. Apply an arrow function to total tea and coffee from a drinks object.
Practice destructuring in function parameters with arrays, preserving order and skipping elements using a comma, then extract the second and third names via an arrow function and template literal.
This course will teach you the fundamentals of ES6 in the JavaScript programming language.
There is a lot of content out there for learning ES6 but much of this doesn't teach the why behind the concepts. Through code examples this course will teach you all the ES6 fundamentals and show you how things were done in JavaScript before. By doing this you will be able to confidently work with and update older legacy projects.
Understanding ES6 is a skill that will help you gain employment in the industry today. It is also very fun to work with! If you ware looking to work with libraries such as React then it is a fundamental skill and part of your learning journey.
Taking this course will allow you to be quickly immersed in the syntax and be up and running with ES6 quickly. I use visual examples and apply the concepts to real day to day like so you can recall the knowledge quickly.
We will cover the basics such as using let and const and for...of and for...in loops. We will then go on to look at topics such as destructuring and using the spread operator. We will then look at array helper methods to stop writing loops and understand how to use ES6 classes. We will end the course by looking at promises.
Through fun and concise videos and code examples followed up with code challenges you will complete the course feeling confident to go off and write ES6 on your own.
Whether you are relatively new to programming, JavaScript or you just want to build upon some existing knowledge this course will help provide you with a toolbox to becoming a better developer.