Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyJavaScriptarray map filter reduceSingle-choice MCQ3,787 views

What does the following code output?

let fruits = ["apple", "banana", "orange"]; console.log(fruits.indexOf("banana"));