Back to basics for me :-( JS and array pains!!
Posted: Sat Apr 02, 2005 10:38 am
This is me, asking a noob question!!!
Why does this not work??
I just want to add stuff to my array without specifying a key
Why does this not work??
I just want to add stuff to my array without specifying a key
Code: Select all
var somearray = new Array();
somearrayї] = 'some value';
somearrayї] = 'another value';
//This also fails
somearray += 'added value';