Question: Plz answer both question. plz do not take this assignment if you don't know the answer. thanks in advance. Question 2 Consider the array: var

Plz answer both question. plz do not take this assignment if you don't know the answer. thanks in advance.
 Plz answer both question. plz do not take this assignment if
you don't know the answer. thanks in advance. Question 2 Consider the
array: var cities - [Tokyo, New York, Mexico City, Seoul'); Which of
the following blocks of code would create a new array with order

Question 2 Consider the array: var cities - [Tokyo, New York, Mexico City, Seoul'); Which of the following blocks of code would create a new array with order of the names reversed? Select the best answer. O reversedcities = []; while (cities.length >= 0) reversedcities.push(cities.pop()) } var reversedcities - Il while (cities[length] > e) { reversedcities.push(cities.pop()); var reversedcities - : while (cities.length > ) { reversedcities.push(cities.pop()); Select the best answer. var reversedcities - [1; while (cities.length > 0) { reversedcities.push cities.pop(); var reversedcities - []; while (cities[length) > 0) { reversedcities.push(cities.pop()); var reversedcities - []; while (cities.length > 0) { reversedcities.push(cities.pop()); var reversedcities - 0); while (cities.length - ) { reversedcities.push(cities.pop()); Question 3 Consider the array: vae cites Tokyo New York ere City Soul T Which of the following blocks of code would print the first three elements of the array to the console?! Select the best new IG console.log(cities[1] for (var 1- ; 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!