What is the best way to eliminate the first letter from a string in this scenario?
d[],e[], [dsh,sj]
After analyzing the data, I realized that I need to remove the first letter before every comma (,
). I tried storing the data and using a for loop, but encountered an error.
*Uncaught SyntaxError: Unexpected token [*
I'm having trouble understanding why this error is occurring. Can anyone explain?
EDIT : I understand how to remove elements, but I'm struggling with declaring it in this context.
Expected Output : [],[],[dsh,sj]