m-shinkawa
6/6/2018 - 11:23 AM

js_cc_04_associative_array

js_cc_04_associative_array

    var apple = new Object();
    
    apple['color'] = 'red';
    apple['price'] = 100;
    apple['gram']  = 150;
    
    document.write(apple['color']);
    document.write(apple['price']);
    document.write(apple['gram']);