Closed Nalini1998 closed 1 year ago
What will be logged to the console when we run the code below?
const cities = ['Chicago', 'San Francisco', 'New York']; console.log(cities[3]);
A. undefined
B. New York
C. Chicago
I chose A. undefined
What will be logged to the console when we run the code below?
A. undefined
B. New York
C. Chicago