Skip to content

Commit

Permalink
Update _chapters/functionaljavascript.md
Browse files Browse the repository at this point in the history
Co-authored-by: Lauren Yim <[email protected]>
  • Loading branch information
rhys-newbury and cherryblossom000 authored Jun 24, 2024
1 parent 73a1e43 commit 109c439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _chapters/functionaljavascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ For many standard loops, however, the logic is the same every time and can easil
const someArray = [1,2,3,4,5];
let newArray = [];
for (let i = 0; i <= someArray.length; i++) {
newArray.push_back(someArray[i] * 2);
newArray.push(someArray[i] * 2);
}
```
Expand Down

0 comments on commit 109c439

Please sign in to comment.