Mutations! What's the problem?

Tell us what’s happening:
Checked for every challenge mentioned but cannot get past through them for what reasons? please help.

Your code so far

function mutation(arr) {
  var str = arr[1].toLowerCase().split('');
  var ar = [];
  for (var i = 0; i < str.length; i++) {
  var art = ar.indexOf(0);
  ar.splice(art, 1);
  var final = ar.reduce(function(a, b) {
    return a * b;
  }, 1);
  return final > 0;

mutation(["floor", "for"]);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36.

Link to the challenge:

okay! it seems like there was some sort of problem which got solved after I reloaded the page. I got past the challenges.

Your code has been blurred out to avoid spoiling a full working solution for other campers who may not yet want to see a complete solution. In the future, if you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.

Thank you.

1 Like

Totally makes sense and yes will do that! Thanks.