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