Ad
  • Custom User Avatar

    Look closely at your error. The strings are not the same...

  • Custom User Avatar

    Just as trim and split and substr are methods you can perform on strings, so is this new creation, toJadenCase. Within the prototype declaration of the toJadenCase function, the string being operated upon would be referenced via the this keyword, instead of a parameter being passed in — the function is already operating on the String itself.