选择题1417/1530输出什么?

1const groceries = ["banana", "apple", "peanuts"]; 2 3if (groceries.indexOf("banana")) { 4 console.log("We have to buy bananas!"); 5} else { 6 console.log(`We don't have to buy bananas!`); 7}
难度:
2021-07-02 创建

本题为单选题”

赞赏支持

预览

题库维护不易,您的支持就是我们最大的动力!