Mutations solution not working

Not sure why this code doesn’t work for this challenge?

function mutation(arr) {
  var str=[arr[0].toLowerCase(), arr[1].toLowerCase()];
for (var i = 0; i < str[1].length; i++) {
 } if (str[0].indexOf(str[1][i]) < 0) 
  return false;
 return true;
mutation(["hello", "hey"]);

your if statement outside the for loop.

 for (var i = 0; i &lt; str[1].length; i++) {

lol whoops, should have known it was something simple. Thanks!

I cleaned up your code.
You forgot to close your code block with triple backticks.
See this post for details.