Noob to javascript and when i tried adding element to an array, the output was something like this:
var shit = ["r", "t", "y"]
shit.unshift("q");
shit;
Array(4) [ "q", "r", "t", "y" ]
Where is was looking for this:
var shit = ["r", "t", "y"]
shit.unshift("q");
shit;
[ "q", "r", "t", "y" ]