Skip to content

Commit

Permalink
update(JS): web/javascript/guide/functions
Browse files Browse the repository at this point in the history
  • Loading branch information
undead404 authored and AdriandeCita committed Oct 24, 2022
1 parent 3a64fa0 commit 7f01a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/uk/web/javascript/guide/functions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ console.log(factorial(3));

```js
function map(f, a) {
const result = [];
const result = new Array(a.length);
for (let i = 0; i < a.length; i++) {
result[i] = f(a[i]);
}
Expand All @@ -116,7 +116,7 @@ function map(f, a) {

```js
function map(f, a) {
const result = [];
const result = new Array(a.length);
for (let i = 0; i < a.length; i++) {
result[i] = f(a[i]);
}
Expand Down

0 comments on commit 7f01a23

Please sign in to comment.