Advertisement
dilyana2001

Untitled

Sep 16th, 2021
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function wordUpper(str) { return str.match(/[\w]+/g).join(', ').toUpperCase() }
  2.  
  3. OR
  4.  
  5. // dont work in judge
  6. const wordUpper = (str) => str.match(/[\w]+/g).join(', ').toUpperCase();
  7.  
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement