You are viewing a single comment's thread. Return to all comments →
javascript
I am sure this solution is quite to think differently but maybe easy to understand. All feedback/suggestions are welcome :)
function camelcase(s) { // Write your code here let word = 0 for(let i=0; i<s.length; i++){ if(s.charAt(i) === s.charAt(i).toUpperCase()){ word += s.split(" ").length } } return word + 1 }
Seems like cookies are disabled on this browser, please enable them to open this website
CamelCase
You are viewing a single comment's thread. Return to all comments →
javascript
I am sure this solution is quite to think differently but maybe easy to understand. All feedback/suggestions are welcome :)