This comment is hidden because it contains spoiler information about the solution
Wait, how is the value lost?!
Because you're doing recursion wrong. The value is lost and your function returns undefined.
Please use appropriate formatting when posting code and the QUESTION label when asking a question or asking for help. The ISSUE label is for kata issues. See https://docs.codewars.com/training/troubleshooting/#post-discourse.
QUESTION
ISSUE
it doesnt output my code correct i dont know what is the problem
You're not doing what the kata is asking for, reread the description. Also, since you're a beginner, you might want to try easier kata first.
Not a kata issue.
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
Wait, how is the value lost?!
Because you're doing recursion wrong. The value is lost and your function returns undefined.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Please use appropriate formatting when posting code and the
QUESTION
label when asking a question or asking for help. TheISSUE
label is for kata issues. See https://docs.codewars.com/training/troubleshooting/#post-discourse.You're not doing what the kata is asking for, reread the description. Also, since you're a beginner, you might want to try easier kata first.
Not a kata issue.
This comment is hidden because it contains spoiler information about the solution