Hoping someone can assist and hoping this is possible in JavaScript. I basically have the following string in the format:
A,B,C:D,E,F
What I am trying to achieve is a means of pairing up left hand side JavaScript variable, to the left of the ":" with the right hand side values to the right of the ":"
I basically would like to have the following variables set in , so that I can use in my coding, i.e:
var A = D;
var B = E;
var C = F;
I can then use the values of A,B and C as parameters into other JavaScript functions.
I have looked at the split and slice methods for this string manipulation but unsure how to pair up left hand side with right hand side values.
Any help would be great, thanks!