From c11def181d64373fc69aa35e792c806acc94e97c Mon Sep 17 00:00:00 2001 From: muazzam Date: Fri, 26 Aug 2022 00:37:45 +0500 Subject: [PATCH] fixed two typos in Day06 loops --- 06_Day_Loops/06_day_loops.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/06_Day_Loops/06_day_loops.md b/06_Day_Loops/06_day_loops.md index c093495..579989d 100644 --- a/06_Day_Loops/06_day_loops.md +++ b/06_Day_Loops/06_day_loops.md @@ -151,7 +151,7 @@ do { ### for of loop -We use for of loop for arrays. It is very hand way to iterate through an array if we are not interested in the index of each element in the array. +We use for of loop for arrays. It is very handy way to iterate through an array if we are not interested in the index of each element in the array. ```js for (const element of arr) { @@ -180,7 +180,7 @@ let sum = 0 for (const num of numbers) { sum = sum + num // can be also shorten like this, sum += num - // after this we will use the shorter synthax(+=, -=, *=, /= etc) + // after this we will use the shorter syntax(+=, -=, *=, /= etc) } console.log(sum) // 15