loading...

Day 94 : #100DaysofCode - A Video And A Challenge

sincerelybrittany profile image Brittany ・1 min read

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.

Discussion

pic
Editor guide