Review Iterators on Codecademy, Practice Iterators in JavaScript, Learn about How to Use Iterators

Channel:
Subscribers:
7,740
Published on ● Video Link: https://www.youtube.com/watch?v=ohJsOdtDyTA



Category:
Tutorial
Duration: 1:59
71 views
2


In this lesson we look at, Review Iterators on Codecademy, Practice Iterators in JavaScript, Learn about How to Use Iterators. This is based on the Codecademy review of their Iterators section. In the last few lessons, we have been looking at the different available iterator methods that we have in JavaScript. In this lesson, we go over what those iterator methods do. We look at .forEach and how it executes the same code on all elements in our array. It also returns undefined. Then there is the .map() method which also executes the same code on every element in an array but it will return a new array of the updated elements. We learned the .filter() method as well and this allows us to check every element in an array and see if it meets a specific condition and it will return a new array with the elements that return true. Then the .findIndex() method will return the index of the array that contains a value we specify. We learn .reduce() method allows us to take multiple values in an array and will return one single value. We now understand that iterator methods take callback functions. Callback functions can be pre-defined! We also learn that there are iterator methods that return true or false such as .some() and .every() method which check if a condition returns true at all in a statement. Understanding iterator methods and documentation are key in becoming a master programmer!




Other Videos By We Will Code


2022-03-19JavaScript Objects Pass By Reference, Codecademy, Passing Variables Assigned to Objects as Arguments
2022-03-19Trippy Music Instrumentals, Trippy Relaxing Music to Listen To, Calm Uplifting Beats for Sleep
2022-03-19We Will Code Live Stream
2022-03-19Accessing Nested Objects with JavaScript, Codecademy's Learn JavaScript, Array with Multiple Objects
2022-03-18Learn How to Create Object Methods in JavaScript, Writing Object Methods In JavaScript on Codecademy
2022-03-18Object Property Assignment in JavaScript, Codecademy's Learn JavaScript Assign Objects Properties
2022-03-18Using Bracket Notation to Access Object Property, How to Access Object Properties, Bracket Notation
2022-03-18Accessing Properties in Objects with JavaScript, Access Object Properties in JavaScript, Codecademy
2022-03-17Practice Creating Object Literals in JavaScript, Codecademy Learn JavaScript, How to Create Objects
2022-03-17An Intro to JavaScript Objects, Introduction to Objects in JavaScript on Codecademy Learn JavaScript
2022-03-17Review Iterators on Codecademy, Practice Iterators in JavaScript, Learn about How to Use Iterators
2022-03-17How to Choose the Right Iterator, Choosing right Iterators with JavaScript on Codecademy's Learn JS
2022-03-16Practice Reading JavaScript Documentation, Learning Iterators, some, every, and filter Methods JS
2022-03-16Best Relaxing Concentration Music Piano, Study Music, 2022 Motivational Instrumental Music for Work
2022-03-16Practice The reduce Method with JavaScript, Codecademy's Use The reduce Method in Reducing Array
2022-03-16The findIndex Method Explained with JavaScript, Codecademy's Practice findIndex Method, Iterators JS
2022-03-15Iterators Explained, The filter method with JavaScript, Codecademy's Use the filter Method on Arrays
2022-03-14How to Use the map Method in JavaScript, Return a New Array with map Method on Codecademy, Iterators
2022-03-14Practice the forEach Method with JavaScript, forEach Explained on Codecademy, Use the forEach Method
2022-03-14Higher-Order Functions JavaScript Review on Codecademy, Tips when Practicing Higher-Order Functions
2022-03-13Functions as Parameters Explained, JavaScript Higher-Order Functions Codecademy Function as Argument



Tags:
Coding
ES6
JS
JavaScript
Programming
Tutorials