I need to split this code and store it in three different variables, like a=GD11
, b=GDP7
and c=GD11
, but I am having trouble because breaking at "s" results in "GDP7xGD11".
Can someone please help me figure out how to break it into three separate variables?
var someString = "GD11sGDP7xGD11";
var lastWord = someString.split("s").pop();
alert(lastWord);