Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

JS level 11 lesson 6

Please help me.
by

3 Answers

Ashutoshry6u3
let mobiles = ["Apple", "Samsung", "One Plus", "Moto", "Huwaei"];

// using forEach function
mobiles.forEach(printMobs);


// define the callback function
function printMobs(item,index) {
console.log(`Rank ${index}: ${item} Mobiles`);
}
iamabhishek
Is this the correct answer that you have posted as the answer, or this is the code with which you are facing problem?

Login / Signup to Answer the Question.