What value is obtained when executing Object.values(object).indexOf('green') in the following code?
const object = {
color1: 'red',
color2: 'green',
color3: 'blue'
};
What value is obtained when executing Object.values(object).indexOf('green') in the following code?
const object = {
color1: 'red',
color2: 'green',
color3: 'blue'
};