Skip to content
fabiantheblind edited this page Apr 11, 2013 · 1 revision

####Arrays

    /*
    Arrays are like lists of things. You can put variables
    in there and access them by an index. Like this
    */  

    var arr_num = [1,2,3];//Array Number
    var arr_str = ["Hello","World","!"]; //Array String

    var s1 = arr_str[0];
    var s2 = arr_str[1];
    var length_of_world = s2.length;

    alert(arr_str);
    alert(length_of_world);
Clone this wiki locally