Advertisement
Guest User

Untitled

a guest
Nov 14th, 2017
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let input = "We start by HTML, CSS, JavaScript, JSON and REST.Later we touch some PHP, MySQL and SQL. " +
  2.     "Later we play with C#, EF, SQL Server and ASP.NET MVC.Finally, we touch some Java, Hibernate and Spring.MVC.";
  3.  
  4. printUppercaseWords(input);
  5.  
  6. function printUppercaseWords(input) {
  7.     let result = input.match(/\b[A-Z]+\b/g);
  8.     console.log(result.join(', '));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement