Replacing It All explainer

I have the same problem

1 Like

As an FYI, should you have the correct solution and you are still not able to get to the next puzzle, try clearing the cache of the app then reset the puzzle and insert the solution again.

Doing this I was able to proceed further.

2 Likes

I have the same problem. Can’t get to the next puzzle with the right code.

1 Like

Could you post a screenshot of your code here?

–Frankie

1 Like

1 Like

Just a very small but important thing: there is an extra space at the end of the 'grasshopper' string.

Notice how where the closing quote mark is:
'grasshopper '
'grasshopper'

–Frankie

4 Likes

Thanks Frankie. It went like yesterday!

3 Likes

Where can I find the full code, so I understand it better

1 Like

I dont have a .log or .return in my keys and it womt let me type it in. How do i get .log for console

1 Like

There should be a .log() button if you scroll to the right in the keyboard. There isn’t a .return key, but the 2nd key should be return, without the dot.

–Frankie

1 Like

I cannot do this thing. I will send a screenshot. Can you please help me do this.

1 Like

At the bottom of your code, the updateAllNames() function takes 3 arguments: the document, the misspelled word, and the correct spelling. You have the correct spelling twice. Change the 1st 'grasshopper' into 'grasshoper' by removing 1 letter 'p'.

–Frankie

1 Like

Thanks for the help. Is grasshopper good to children of 13 years.

1 Like


I have some problem,
Some body help.

yeah, i tried to restart my device and stuff, but there is still not .log() or return.

I rebooted my device and now i have the keys i need but now i am confused on what code i entered wrong Screenshot_20190211-151817_Grasshopper|281x500

I’m not able to see the file you uploaded. But to solve this puzzle, there’s only a few things to do:

  • Reset, to make sure none of the starter code was changed
  • The code you add will go at the very bottom
  • Add console.log()
  • Inside the parentheses of .log(), add updateAllNames()
  • Inside the parentheses of updateAllNames(), you will add 3 arguments
  • The order of the arguments are:
    • The travelDocument variable
    • The 'grasshoper' string, with 1 'p', no capitals or spaces
    • The 'grasshopper' string, with 2 'p's, no capitals or spaces

–Frankie

Screenshot_20190211-151817_Grasshopper
I feel I did it right, but it still won’t work.

Try taking out the spaces in the strings:

–Frankie

Can you explain use of code return, in if block code, return string is it mean to return to string on argument of updateAllName() function or to updated string?

Trims