column to convert into comma separated list

Remove all line breaks from a string using JavaScript

Output: