Pig Latin not accepting the answer

Pig Latin not accepting the answer
0

#1

I have done the pig latin challenge, it returns the right values, but still the FreeCodeCamp app shows that it is not good. Can somebody tell me what is wrong here?

Link to the challenge:


#2

You aren’t returning anything from your translatePigLatin() funciton.


#3

Ou… I see now! I thought that if I am returning something from the inner function that it will also be return from the main function. Thanks a lot! :smile: