¿Qué valor se obtiene al ejecutar el siguiente código?
const arr = ['a', 'b', 'c']; console.log(arr.indexOf('b'));
2
0
-1
1