Skip to content

Commit

Permalink
update(JS): web/javascript/reference/global_objects/array (#589)
Browse files Browse the repository at this point in the history
* update(JS): web/javascript/reference/global_objects/array

* update(JS): web/javascript/reference/global_objects/array

* update(JS): web/javascript/reference/global_objects/array
  • Loading branch information
undead404 authored Aug 31, 2022
1 parent 5973958 commit a19e55d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ const fruits = ['Яблуко', 'Банан'];
console.log(fruits.length);
// 2

// Масив 'fruits' створений за допомогою конструктора Array()
// Масив 'fruits2' створений за допомогою конструктора Array()
const fruits2 = new Array('Яблуко', 'Банан');
console.log(fruits.length);
console.log(fruits2.length);
// 2

// Масив 'fruits' створений за допомогою String.prototype.split().
// Масив 'fruits3' створений за допомогою String.prototype.split().
const fruits3 = 'Яблуко, Банан'.split(', ');
console.log(fruits.length);
console.log(fruits3.length);
// 2
```

Expand Down

0 comments on commit a19e55d

Please sign in to comment.