Spinal tape case{issue with splitting one whole string to substrings}

Tell us what’s happening:
hello, I’m trying to figure out how to split a string like “AllthatIsWell” into “All that is well” using regExp and I’m sort of lost.
Any input I’d appreciate.

  **Your code so far**

function spinalCase(str) {
return str

console.log(spinalCase('This Is Spinal Tap'));
console.log(spinalCase("AllThe-small Things"));
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36

Challenge: Spinal Tap Case

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.