Closed Nalini1998 closed 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
I chose C/ 1
What is the value of topPriority?
A/ -1
B/ 2
C/ 1
D/ undefined