6. Why not use push?


#1



My code is working, I understand how to do this, but I thought we were suppose to use push() in order to push this to the array?

Can someone please help me understand? Thanks in advance!


https://www.codecademy.com/en/courses/building-an-address-book/0/6?curriculum_id=506324b3a7dffd00020bf661


Replace this line with your code.


#2

@jaydacoder,
You now know 2 ways to append Array-Elements....
Try a google-search
== discussions / opinions ==
javascript using array length instead of push site:stackoverflow.com
for instance
http://stackoverflow.com/questions/16952605/array-pushelement-vs-arrayarray-length-element
or
http://stackoverflow.com/questions/15649899/is-there-a-reason-javascript-developers-dont-use-array-push


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.