how to add an element to the beginning or end of an array: info in description #coding #javascript

preview_player
Показать описание
A JavaScript tutorial on how to use unshift() to add an element to the beginning of an array and push() to add an element to the end of an array. The return value for both methods is the new length of the array.
Рекомендации по теме
Комментарии
Автор

Why in both cases is console.log(y) return 3?

Jschmuck
join shbcf.ru