Use the Spread Operator to Evaluate Arrays In-Place, An ES6 Teaching

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=9Utr0dAi6wY



The Operator
Game:
Duration: 3:20
245 views
6


In this lesson in our journey through the world of the ES6 syntax, we look at the Spread Operator. We learn very quickly upon looking at the makeup of the spread opertor, that it bears the same "..."' structure that we learned in the previous lesson, the rest parameters. The spread operator is different. When using the spread operator, we are able to unpack an array, as opposed to the rest parameter, which allows us to collect elements passed in an array. We learn that the spread operator can only work in-place. So, the spread operator can only work as an argument for a function or in an array literal. Understanding this helps in distinguishing the difference between the spread operator and rest parameters.




Other Videos By We Will Code


2019-12-03Use class Syntax to Define a Constructor Function, ES6 tutorial, Learn ES6 Syntax
2019-12-02Write Concise Declarative Functions with ES6, Learn ES6 Syntax
2019-11-29Write Concise Object Literal Declarations Using Object
2019-11-28Create Strings using Template Literals, Learn JS ES6
2019-11-26Use Destructuring Assignment to Pass an Object as a Function's Parameters,Learning Destructuring ES6
2019-11-24Use Destructuring Assignment with the Rest Parameter to Reassign Array Elements, Learn JS 2020
2019-11-23Use Destructuring Assignment to Assign Variables from Arrays, Learning JS ES6 2020, Web Dev
2019-11-22Use Destructuring Assignment to Assign Variables from Nested Objects, Learning the ES6 Syntax
2019-11-21Use Destructuring Assignment to Assign Variables from Objects, An ES6 Course Introduction
2019-11-20Use Destructuring Assignment to Extract Values from Objects, freeCodeCamp tutorials for ES6
2019-11-19Use the Spread Operator to Evaluate Arrays In-Place, An ES6 Teaching
2019-11-18Use the Rest Parameter with Function Parameters, freeCodeCamp Course on ES6 Syntax, Learn JS 2020
2019-11-17Set Default Parameters for Your Functions, ES6 Courses on
2019-11-16Write Arrow Functions with Parameters, freeCodeCamp's ES6 Course, ES6 Challenges FreeCodeCamp
2019-11-15Use Arrow Functions to Write Concise Anonymous Functions, freeCodeCamp's ES6 Challenges, Javascript
2019-11-14Prevent Object Mutation, ES6 freeCodeCamp Introduction, Learn Javascript in 2020, ES6 Syntax
2019-11-13Mutate an Array Declared with const, 2020 ES6 Tutorials, freeCodeCamp ES6 Challenges 2020
2019-11-12Declare a Read-Only Variable with the const Keyword, A freeCodeCamp ES6 Syntax Introduction
2019-11-11Compare Scopes of the var and let Keywords, ES6 Intro FreeCodeCamp, Learn ES6 on FreeCodeCamp
2019-11-10Explore Differences Between the var and let Keywords, Learn ES6, Intro to ES6, free Coding Tutorials
2019-11-10Introduction to the ES6 Challenges, freeCodeCamp Intro to ES6 Challenges on FreeCodeCamp



Tags:
rest parameters in es6
es6 function parameters
learn es6 functions
es6 spread operator
spread operator vs rest
rest vs spread
spread vs rest



Other Statistics

The Operator Statistics For We Will Code

We Will Code currently has 4,014 views spread across 7 videos for The Operator. His channel published less than an hour of The Operator content, making up less than 0.30% of the total overall content on We Will Code's YouTube channel.