QUESTION IMAGE
Question
jump to level 1
loop through the array and output the values in order.
let friendsnames = \ann\, \bob\, \joe\,
on\ ; // tests will use different arrays
/ your solution goes here /
Step1: Use a for loop
for (let i = 0; i < friendsNames.length; i++) {
Step2: Output each element
console.log(friendsNames[i]);
}Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
for (let i = 0; i < friendsNames.length; i++) {
console.log(friendsNames[i]);
}