Nalini1998 / Project_Public

MIT License
2 stars 0 forks source link

What will be logged to the console when we run the code below? #544

Closed Nalini1998 closed 1 year ago

Nalini1998 commented 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

Nalini1998 commented 1 year ago

I chose A. undefined