Skip to content

Commit 03f19e8

Browse files
Fixing incorrect variable usage
An incorrect variable name was used. Since it was a minor mistake, I immediately corrected it. Wrong use: ```js let dizi = ['Bilbo', 'Gandalf', 'Nazgul']; let str = srt.join(';'); // must be: let str = dizi.join(';'); alert( str ); ```
1 parent 3f32d6b commit 03f19e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ alert( str.split('') ); // t,e,s,t
466466
```js run
467467
let dizi = ['Bilbo', 'Gandalf', 'Nazgul'];
468468

469-
let str = arr.join(';');
469+
let str = dizi.join(';');
470470

471471
alert( str ); // Bilbo;Gandalf;Nazgul
472472
```

0 commit comments

Comments
 (0)