Try to print your variables at different parts of your program. I suspect that you might think that x[0] is something that it isn't.
x[0]
This comment is hidden because it contains spoiler information about the solution
Ah okay thanks I'm new here
Please read this: https://docs.codewars.com/training/troubleshooting#post-discourse
See the initial code:
String.prototype.toJadenCase = function () { //... };
You should work with String.prototype, not creating a function like you did.
Loading collection data...
Try to print your variables at different parts of your program. I suspect that you might think that
x[0]
is something that it isn't.This comment is hidden because it contains spoiler information about the solution
Ah okay thanks I'm new here
Please read this: https://docs.codewars.com/training/troubleshooting#post-discourse
See the initial code:
You should work with String.prototype, not creating a function like you did.
This comment is hidden because it contains spoiler information about the solution