var myarray = []; var result1 = myarray[0]; var result2 = myarray[1]; var result3 ....etc... Selecting first is easy, cause it's just 0. How do I put the last one into a var? It seems like such a simple question but I must have been googling wrong cause I could not find any answer that worked.