You will be given a text as a string. Write a JavaScript function that extracts and prints only the text that’s surrounded by parentheses. The input comes as a single string argument.
Examples:
Input:
'Rakiya (Bulgarian brandy) is self-made liquor (alcoholic drink)'
Output:
Bulgarian brandy, alcoholic drink
The output is printed on the console on a single line, in the form of a comma-separated list.