1//adding items to array
2objects = [];
3objects.push("you can add a string,number,boolean,etc");
4//if you more stuff in a array
5//before i made a error doing value = : value
6objects.push({variable1 : value, variable2 : value);
7//we do the {} so we tell it it will have more stuff and the variable : value
8
1var vegetables = ['Capsicum',' Carrot','Cucumber','Onion'];
2vegetables.push('Okra');
3//expected output ['Capsicum',' Carrot','Cucumber','Onion','Okra'];
4// .push adds a thing at the last of an array
1arr = [1, 2, 3, 4]
2arr.push(5) // adds element to end
3
4arr.unshift(0) // adds element to beginning