Which of the following statements adds the value oak as the third element of the trees array?

Question:

Which of the following statements adds the value “oak” as the third element of the trees array?

a. trees += "oak";

b. trees += "","","oak";

c. trees[2] = "oak";

d. trees[3] = "oak";

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

JavaScript

ISBN: 9781305078444

6th Edition

Authors: Sasha Vodnik, Don Gosselin

Question Posted: