From 9c8a34b6caf3b86cb7a6bfc06e2fc261ca96234e Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Tue, 15 Oct 2024 21:53:28 +1300 Subject: [PATCH] fix(curriculum): Odin Loops and Arrays G missing brace (#56680) Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> --- .../learn-arrays-and-loops-lesson-g.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/16-the-odin-project/top-learn-arrays-and-loops/learn-arrays-and-loops-lesson-g.md b/curriculum/challenges/english/16-the-odin-project/top-learn-arrays-and-loops/learn-arrays-and-loops-lesson-g.md index d4f2b1fe27e..35e2830dbe0 100644 --- a/curriculum/challenges/english/16-the-odin-project/top-learn-arrays-and-loops/learn-arrays-and-loops-lesson-g.md +++ b/curriculum/challenges/english/16-the-odin-project/top-learn-arrays-and-loops/learn-arrays-and-loops-lesson-g.md @@ -18,7 +18,7 @@ const newArray = array.map((arrayValue) => { console.log(newArray); // Output: [2, 4, 6, 8, 10] ``` -The `map()` method creates a new array by applying the function `(arrayValue) => { return arrayValue * 2;` to each element of the original array. This is particularly useful when you want to transform the elements of an array without changing the original array. +The `map()` method creates a new array by applying the function `(arrayValue) => { return arrayValue * 2; }` to each element of the original array. This is particularly useful when you want to transform the elements of an array without changing the original array. # --questions--