arrays

by cliftonyeo

HTML

<div id="output"></div>

CSS

#output {
    font-size:40px;
}

JavaScript

var myList = [
    'apple', 
    'orange', 
    'banana',
    'strawberry'
    'kiwi',
    'pear'
];     


$.each(myList, function() {
    
    
    
});
       
       //loops through the list and performs function() for each

//add items to the list

/*
myList.push('apple');
myList.push('orange');
myList.push('banana');
myList.push('strawberry');
*/

//write the list out
// $('#output').html(myList.length);