Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const rapperArray = ["Lil' Kim", "Jay-Z", "Notorious B.I.G.", "Tupac"];
- for(let i=0; i<rapperArray.length; i++){
- console.log(rapperArray[i]);
- if(rapperArray[i] == 'Notorious B.I.G.'){
- break;
- }
- }
- console.log("And if you don't know, now you know.");
Advertisement
Add Comment
Please, Sign In to add comment