34,333
edits
Changes
→Initializing the Elements of an Array
</pre>
Another useful way to add elements to an array is to use the ''push()'' method of the array object. The push method simply adds a new elelemt element to the end of the array:
<pre>