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.
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.