#691. Which place?
When the green flag is clicked, this script runs. What number will the cat say?
when green flag clicked delete all of [names v] add [Bilguun] to [names v] add [Bat] to [names v] add [Temuulen] to [names v] add [Saraa] to [names v] say (item # of [Temuulen] in [names v])
names = []
# When the green flag is clicked
names.clear()
names.append("Bilguun")
names.append("Bat")
names.append("Temuulen")
names.append("Saraa")
print(names.index("Temuulen") + 1)
const names = [];
// When the green flag is clicked
names.length = 0;
names.push("Bilguun");
names.push("Bat");
names.push("Temuulen");
names.push("Saraa");
console.log(names.indexOf("Temuulen") + 1);
💡 Not sure? Build it in Scratch and try it out.