What value is obtained when the following code is executed?
const arr = ['a', 'b', 'c']; console.log(arr.indexOf('b'));
0
2
-1
1