FunctionRacerProblemsRace

Snake Case to Camel Case

BeginnerStringsPython, JavaScript, TypeScript, Java, C++

name is lowercase words joined by single underscores, like my_var_name. Return it in camel case: keep the first word as it is and capitalize the first letter of every later word, with no underscores. A name with no underscore is returned unchanged.

Example 1

name "my_var_name"
returns "myVarName"

my + Var + Name.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More Strings problems