diff --git a/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/67329f7f3d1bd75c17896c66.md b/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/67329f7f3d1bd75c17896c66.md index 06334829659..3d0c1900847 100644 --- a/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/67329f7f3d1bd75c17896c66.md +++ b/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/67329f7f3d1bd75c17896c66.md @@ -1,26 +1,19 @@ --- id: 67329f7f3d1bd75c17896c66 title: How Do Loops and Iteration Work in JavaScript? -challengeType: 11 -videoId: 2h4RsvyUDH4 +challengeType: 19 dashedName: how-do-loops-and-iteration-work-in-javascript --- # --description-- -Watch the video or read the transcript and answer the questions below. - -# --transcript-- - -How do loops and iteration work in JavaScript? - Loops in programming are used to repeat a block of code multiple times. An example of a loop would be when you are designing a program that needs to print out a list of items. You could use a loop to print out each one of the items in the list. Another example would be when you designing a game and you want to move a character across the screen. You could use a loop to move the character a certain number of pixels each time the loop runs. -In JavaScript, there are several types of loops that you can use. In this video, we will cover the `for` loop. Here is the basic syntax for a `for` loop: +In JavaScript, there are several types of loops that you can use. In this lecture, we will cover the `for` loop. Here is the basic syntax for a `for` loop: ```js for (initialization; condition; increment or decrement) { diff --git a/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c04638420641dcca2e6e.md b/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c04638420641dcca2e6e.md index 7f02b4b6d2c..e7d1d8e0b91 100644 --- a/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c04638420641dcca2e6e.md +++ b/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c04638420641dcca2e6e.md @@ -1,19 +1,12 @@ --- id: 6732c04638420641dcca2e6e title: How Does the For...of Loop Work, and When Should You Use It? -challengeType: 11 -videoId: 3EvkUpl4IQs +challengeType: 19 dashedName: how-does-the-for-of-loop-work-and-when-should-you-use-it --- # --description-- -Watch the video or read the transcript and answer the questions below. - -# --transcript-- - -How does the `for...of` loop work and when should you use it? - A `for...of` loop is used when you need to loop over values from an iterable. Examples of iterables would be arrays, and strings. Here is the basic syntax for a `for...of` loop: diff --git a/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c05595ca7d422b9e55ff.md b/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c05595ca7d422b9e55ff.md index 64bfc02bbfd..053421c68f0 100644 --- a/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c05595ca7d422b9e55ff.md +++ b/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c05595ca7d422b9e55ff.md @@ -1,19 +1,12 @@ --- id: 6732c05595ca7d422b9e55ff title: What Is the For...in Loop, and When Should You Use It? -challengeType: 11 -videoId: K0dZ8f9AZt4 +challengeType: 19 dashedName: what-is-the-for-in-loop-and-when-should-you-use-it --- # --description-- -Watch the video or read the transcript and answer the questions below. - -# --transcript-- - -What is the `for...in` loop and when should you use it? - A `for...in` loop is best used when you need to loop over the properties of an object. This loop will iterate over all enumerable properties of an object, including inherited properties and non-numeric properties. An inherited property is a property that is inherited from the object's prototype chain. A non-numeric property is a property that is not a number or a string that can be converted to a number. @@ -150,7 +143,7 @@ apple ### --feedback-- -Review the beginning of the video to learn what the `for...in` loop does. +Review the beginning of the lecture to learn what the `for...in` loop does. --- @@ -162,7 +155,7 @@ price ### --feedback-- -Review the beginning of the video to learn what the `for...in` loop does. +Review the beginning of the lecture to learn what the `for...in` loop does. --- @@ -182,7 +175,7 @@ fruit ### --feedback-- -Review the beginning of the video to learn what the `for...in` loop does. +Review the beginning of the lecture to learn what the `for...in` loop does. ## --video-solution-- diff --git a/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c06654ea3442724284fe.md b/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c06654ea3442724284fe.md index 6ae28a66ee6..de658a2cedd 100644 --- a/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c06654ea3442724284fe.md +++ b/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c06654ea3442724284fe.md @@ -1,20 +1,13 @@ --- id: 6732c06654ea3442724284fe title: What Is a While Loop, and How Does It Differ from the Do...while Loop? -challengeType: 11 -videoId: 93KL4Ou1eXU +challengeType: 19 dashedName: what-is-a-while-loop-and-how-does-it-differ-from-the-do-while-loop --- # --description-- -Watch the video or read the transcript and answer the questions below. - -# --transcript-- - -What is a `while` loop and how does it differ from the `do...while` loop? - -In previous lecture videos, you learned how to work with `for` loops, `for...in` loops and `for...of` loops. In this lecture, you will learn about the `while` loop and the `do...while` loop. +In previous lectures, you learned how to work with `for` loops, `for...in` loops and `for...of` loops. In this lecture, you will learn about the `while` loop and the `do...while` loop. A `while` loop will run a block of code as long as the condition is true. Here is the basic syntax for a `while` loop: diff --git a/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c07238355642a9781dfb.md b/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c07238355642a9781dfb.md index 1f6321771ba..385285a7587 100644 --- a/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c07238355642a9781dfb.md +++ b/curriculum/challenges/english/25-front-end-development/lecture-working-with-loops/6732c07238355642a9781dfb.md @@ -1,19 +1,12 @@ --- id: 6732c07238355642a9781dfb title: What Are the Break and Continue Statements Used for in Loops? -challengeType: 11 -videoId: U3gATVuQTxQ +challengeType: 19 dashedName: what-are-the-break-and-continue-statements-used-for-in-loops --- # --description-- -Watch the video or read the transcript and answer the questions below. - -# --transcript-- - -What are the `break` and `continue` statements used for in loops? - A `break` statement is used to exit a loop early, while a `continue` statement is used to skip the current iteration of a loop and move to the next one. Here is an example of using a `break` statement in a `for` loop: