Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wordUpper(str) { return str.match(/[\w]+/g).join(', ').toUpperCase() }
- OR
- // dont work in judge
- const wordUpper = (str) => str.match(/[\w]+/g).join(', ').toUpperCase();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement