const myArray = ['rock', 'paper', 'scissors'];
for(item of myArray){
const index = myArray.indexOf(item);
console.log(index)
}
const myArray = ['rock', 'paper', 'scissors'];
for(item of myArray){
const index = myArray.indexOf(item);
console.log(index)
}