DEV Community

Minh Hieu
Minh Hieu

Posted on

CamelCase Explain Solution | Javascript

function camelcase(s) {
 const regex = new RegExp(/[A-Z]/g);
  const match = s.match(regex) || [];
  return match.length + 1;

}

Problem

Top comments (0)