fix(curriculum): Odin Loops and Arrays G missing brace (#56680)

Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
Supravisor
2024-10-15 21:53:28 +13:00
committed by GitHub
parent 84513547d7
commit 9c8a34b6ca

View File

@@ -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--