nodejs convert uppercase code example
Example 1: to upper javascrit
var str = "Hello World!";
var res = str.toUpperCase();
Example 2: extract uppercase words nodejs
const str = "HERE'S AN UPPERCASE PART of the string";
const upperCaseWords = str.match(/(\b[A-Z][A-Z]+|\b[A-Z]\b)/g);
console.log(upperCaseWords);