push()

push()


var list = ["tiger","bird","cat","bear"];


list;


['tiger', 'bird', 'cat', 'bear']


list.push("elephent"); // now write list and you get "elephent" in last


list


['tiger', 'bird', 'cat', 'bear',"elephent"]



Comments