JS array .concat() method

preview_player
Показать описание
JavaScript array .concat() method merges two or more arrays and returns a new array.

On this example, let's merge these two arrays.

fruits = ['🍍', '🍓', '🍌'];
sweets = ['🍩', '🍰', '🧁'];

Subscribe 🔔 for more fruits and JavaScript codes.
Рекомендации по теме
join shbcf.ru