Nalini1998 / Project_Public

MIT License
2 stars 0 forks source link

What is the value of topPriority? #542

Closed Nalini1998 closed 1 year ago

Nalini1998 commented 1 year ago

What is the value of topPriority?

const errands = ['Go to the bank', 'Pick up dry cleaning', 'Go grocery shopping']; 

const topPriority = errands.indexOf('Pick up dry cleaning');

A/ -1

B/ 2

C/ 1

D/ undefined

Nalini1998 commented 1 year ago

I chose C/ 1