DEV Community

Discussion on: Daily Challenge #95 - CamelCase Method

Collapse
 
savagepixie profile image
SavagePixie • Edited

I don't capitalise the first word of a camelCase construct. As far as I'm aware, it isn't customary in JavaScript.

But you are right, if one were to capitalise the first word as well, the regular expression would have to be modified accordingly.

Thread Thread
 
avalander profile image
Avalander

The confusion is because the description says camelCase but they mean PascalCase.