Guest User

Untitled

a guest
Jun 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. var str = "saveChangesInTheEditor";
  2. var words = str.replace(/([a-z])([A-Z])/g,'$1 $2');
  3. console.log(words.split(" ").length);
Add Comment
Please, Sign In to add comment