Tell us what’s happening:
? without copying and pasting the answer how could someone possibly be expected to get here??
//change this line?? but also add variables apply the match method and print it to the console?? who writes the direction???
Your code so far
let crowd = "P1P2P3P4P5P6CCCP7P8P9";
let reCriminals = /C+/; // Change this line
let matchedCriminals = crowd.match(reCriminals);
console.log(matchedCriminals);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
.
Challenge: Find One or More Criminals in a Hunt
Link to the challenge: