You are viewing a single comment's thread. Return to all comments →
LOL we did the same jaja. Nice string template instead of concatenate.
function processData(input) { let inputLines = input.split("\n"); let words = inputLines.slice(1,+inputLines[0]+1).join(" "); inputLines.slice(+inputLines[0]+2).forEach(a=>{ let match = words.match(RegExp(a.slice(0,a.length-2)+"[zs]e","g")); console.log(match?match.length:0)}); }
Seems like cookies are disabled on this browser, please enable them to open this website
The British and American Style of Spelling
You are viewing a single comment's thread. Return to all comments →
LOL we did the same jaja. Nice string template instead of concatenate.