Write a JavaScript program that extracts all words from a passed in string and converts them to upper case. The extracted words in upper case must be printed back on a single line concatenated by “, “.
The input comes as a single string argument - the text from which to extract and convert the words.
Examples:
Input:
'Hi, how are you?'
Output:
HI, HOW, ARE, YOU
Input:
'hello'
Output:
HELLO
The output should be a single line containing the converted string.