Javascript – .replace method replaces only the first occurance and ignores the rest
for the below posted string, i want to replace any occurances of , with , i mean that the resultant string should contains values separated only by comma not a comma plus space. the result of the below posted code…