To remove leading comma from a string with JavaScript, we call the substring method.
For instance, we write
const myOriginalString = ",'first string','more','even more'";
const myString = myOriginalString.substring(1);
to call myOriginalString.substring with 1 to return a substring of myOriginalString without the first character.