Today I watched a piece of the JavaScript: Understanding the Weird Parts video on youtube.
Complete the solution so that the function will break up camel casing, using a space between words.
The solution that would be ("camelCasing") == "camel Casing"
I came up with the following solution:
def solution(string)
s = string.split /(?=[A-Z])/
s.join(' ')
end
I hope to start practicing code challenges with javascript.
Top comments (0)