Loop in Reverse Using a for Loop, Learn JavaScript with Codecademy, Looping in Reverse, Loops JS ES6

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



Duration: 2:46
268 views
3


This is Codecademy's Learn JavaScript Course, Loops Section, Looping in Reverse and the video's name is "Loop in Reverse Using a for Loop, Learn JavaScript with Codecademy, Looping in Reverse, Loops JS ES6". In this lesson, we take what we learned in the last lesson and switch it up a bit. We learn that for loops allow us to loop in reverse. We do this by first setting our iterator variable to our highest desired value in our initialization expression. We also want to set the stopping condition of our iterator for when the iterator variable is less than the desired amount. Our iterator should decrease in intervals after each successful iteration. Understanding for loops in javascript requires understanding increment and decrement operators we learned in past lessons. Now, these are able to combine with loops to help us continue or stop a loop. Make sure to understand the basic parts of a for loop which we covered in previous lessons. Understanding that we provide the initialization of an iterator variable, and how to create conditions as well as how a stopping condition works are key in understanding for loops in programming! Make sure to understand how to use a for loop in JavaScript before moving on from this lesson! Practice writing for loops. Practice looping in reverse. JavaScript for loops are fun and valuable to know!




Other Videos By We Will Code


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
2022-03-12Higher-Order Functions, JavaScript Functions as Data, Codecademy Assign and Reassign Function Data
2022-03-11An Intro to Higher-Order Functions, Codecademy's Learn JavaScript, What are Higher-Order Functions
2022-03-11Codecademy's Learn JavaScript, Loops Section Review Loops, Important Loop Summary, Learn JS 2022 ES6
2022-03-10The break Keyword Explained with JavaScript on Codecademy's Learn JavaScript, break Keyword Practice
2022-03-10Do While Loops Explained with JavaScript, Practice Do While Statements with Codecademy's Learn JS
2022-03-08The While Loop Explained with JavaScript, What is A While Loop in JavaScript, Codecademy's JS Course
2022-03-08Use a Nested Loop to Find Mutual Followers, Nested Loops Explained, Accessing Nested Arrays with JS
2022-03-07Looping Through Arrays Explained, How to Loop through an Array with JavaScript, on Codecademy, Loops
2022-03-07Loop in Reverse Using a for Loop, Learn JavaScript with Codecademy, Looping in Reverse, Loops JS ES6
2022-03-07The For Loop Explained, What is a for Loop in JavaScript, Learn for Loop on Codecademy's Learn JS
2022-03-07Learn JavaScript on Codecademy, Why Repeating Tasks Manually Calls For Loops in Programming, JS ES6
2022-03-05An Intro to Loops in Programming, Loops in JavaScript on Codecademy's Loop Section, What is Iterate
2022-03-04Learn JavaScript, Review Arrays, How JavaScript Arrays Work, Understanding Arrays in JavaScript 2022
2022-03-04Accessing Nested Arrays in JavaScript, Nested Arrays in Arrays Explained, Learn JS on Codecademy,
2022-03-04Arrays in Functions Explained, Understanding Arrays and Functions on Codecademy's Learn JavaScript
2022-03-03More Array Methods Explained in JavaScript on Codecademy, Methods, shift, unshift, slice, indexof
2022-03-03Removing last element in an Array with pop Method in JavaScript, Codecademy's JS Array's pop Method
2022-03-03Array Push Method Explained with JavaScript on Codecademy, Understanding Array Push Method, JS Guide
2022-03-03Array's Length Property Explained, JavaScript on Codecademy, Count Elements in an Array with length



Tags:
Coding
ES6
JS
JavaScript
Programming
Tutorials