Suppose an array reptiles is ["snake", "turtle", "lizard"]. To add "crocodile" to the beginning of the array, use the statement ___.

A. reptiles.push("crocodile");
B. reptiles.push();
C. reptiles.pop("crocodile");
D. reptiles.pop();
E. reptiles.unshift("crocodile");
F. reptiles.unshift();
G. reptiles.shift("crocodile");
H. reptiles.shift();

E. reptiles.unshift("crocodile");

Computer Science & Information Technology

You might also like to view...

Saving an object group as a ________ image results in a good-quality picture with a smaller file size compared to other file types

A) PNG B) TIFF C) JPEG D) Bitmap

Computer Science & Information Technology

When selecting noncontiguous files, you press and hold the ________ key while clicking the desired files

A) Alt B) Esc C) Ctrl D) Shift

Computer Science & Information Technology