I have a string, I just want the first half, before the &. So naturally, you would think this would work...
var string = "EAAzqcZChQwMt3eJjGTucj1Illzr2v1oJsIY1NHulzZDZD&expires_in=4994";
string.split("&");
console.log(string[0]);
You would think string[0] would return
EAAzqcZChQwMt3eJjGTucj1Illzr2v1oJsIY1NHulzZDZD
But it returns
E
What gives? Hopefully Im just being an idiot, and need to go to bed soon. But I can't see whats wrong here.