Skip to content
Advertisement

place the symbol

to add certain symbol after every three got splited lines Something like that?? –

JavaScript

Advertisement

Answer

This code looks if there are three or more commas in the text. If it is, it splits the text into 4 parts, then concats the 3 first parts and adds an @ before the third comma and redo the same process with the remaining text (4th part):

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement