MENU
HOMEWebArray.prototype.push()

Javascript Array.prototype.push()

var push_arr = ['tokyo','nagoya','osaka'];
document.write(push_arr + '<br>');
var push_arr2 = push_arr.push('fukuoka');
document.write(push_arr2);

See the Pen js: Array.prototype.push() by nwstcode (@nwst) on CodePen.12804

Webmaster Knowledge
ページの先頭へ