Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run the code when I hit Ctrl+Enter #1773

Closed
inarayan opened this issue Aug 16, 2015 · 2 comments
Closed

Not able to run the code when I hit Ctrl+Enter #1773

inarayan opened this issue Aug 16, 2015 · 2 comments

Comments

@inarayan
Copy link

Challenge http://freecodecamp.com/challenges/bonfire-mutations has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
Steps to replicate the scenario:

1.Write any program and try submitting it.
2.It never runs irrespective of what the answer is.

Regards,
Indra

@saadanerdetbare
Copy link
Contributor

maybe not the most elegant solution but 5 mins code results in a green tick

function mutation(arr) {
  var base = arr[0].toLowerCase();
  var searchString = arr[1].toLowerCase().split("");
  var isFound = true
  searchString.forEach(function(element){
    if(base.indexOf(element) === -1){
      isFound = false;
    }
  });
  return isFound;
}

mutation(['hello', 'hey']);

@benmcmahon100
Copy link
Member

Hey we are currently working on this! Thanks for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants