I wanna split in this code and store it in three different variables, like a=GD11
, b=GDP7
and c=GD11
, but I have problem that break in "s" shows result of "GDP7xGD11".
How can I break in separated three variables please help and suggest me.
var someString = "GD11sGDP7xGD11";
var lastWord = someString.split("s").pop();
alert(lastWord);