From 5b7f29ccb0e586eeb6029005aa00c113116786c8 Mon Sep 17 00:00:00 2001 From: BABABUSOLA Date: Tue, 18 Mar 2025 09:44:08 +0100 Subject: [PATCH] fix(curriculum): typo in lecture working with loops transcript (#59315) --- .../lecture-working-with-loops/6732c04638420641dcca2e6e.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 16ca723e99c..7f02b4b6d2c 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 @@ -89,7 +89,7 @@ for (const person of people) { } ``` -In this example, the we have an array of objects called `people`. Each object has a `name` and `age` property. +In this example, we have an array of objects called `people`. Each object has a `name` and `age` property. When we loop through the array, we create a variable called `person` that will represent the current object in the array. @@ -97,7 +97,7 @@ Inside the loop, we are outputting a message to the console. The first message will be `John is 30 years old`, the second message will be `Jane is 25 years old`, and the third message will be `Jim is 40 years old`. -`for...of` loops are really useful when you need to loop over values from an iterable like an array or a string. They also usually easy to read and can make your code more concise. +`for...of` loops are really useful when you need to loop over values from an iterable like an array or a string. They are also easy to read and can make your code more concise. # --questions--