I am kind of new to javascript, I am not sure if there is direct support
for "tokens" in the sense that they are characters that mark places in a
string.
For example if I had
var mystring = "12345:abcd e";
and I wanted to consider the colon ":" in the middle a token, how would I
define a new variable that is everything that comes before it (12345)? How
about for after it (abcde)?
I am sorry if this is a stupid noob question.
for "tokens" in the sense that they are characters that mark places in a
string.
For example if I had
var mystring = "12345:abcd e";
and I wanted to consider the colon ":" in the middle a token, how would I
define a new variable that is everything that comes before it (12345)? How
about for after it (abcde)?
I am sorry if this is a stupid noob question.
Comment