Rapper Array Help

Hi, could anyone please help me solve this

Here is the link to the lesson: https://www.codecademy.com/courses/introduction-to-javascript/lessons/loops/exercises/break-keyword

and here is the code:

const rapperArray = [“Lil’ Kim”, “Jay-Z”, “Notorious B.I.G.”, “Tupac”];

// Write your code below

for (let i = 0; i < rapperArray.length; i++) {

}

Blockquote

hi!
this is the answer

const rapperArray = ["Lil' Kim", "Jay-Z", "Notorious B.I.G.", "Tupac"];

// Write your code below
for (let i = 0; i < rapperArray.length; i++){
// Task 1 to log each rapper to console
  console.log(rapperArray[i]);
// Task 2 to check if the current rapper is 'Notorious B.I.G' and break if it is 
  if (rapperArray[i] === 'Notorious B.I.G.'){
    break;
  }
}
// Task 3 to write to console
console.log("And if you don't know, now you know.");





Thank you so much for your help, it really helped me a lot