139
rated 0 times
[
143]
[
4]
/ answers: 1 / hits: 33074
/ 8 Years ago, tue, december 20, 2016, 12:00:00
I understand that in Javascript, I can create an object like this:
var cup = {};
Furthermore, I can set properties like this:
cup.color = 'Blue';
cup.size = 'Large';
cup.type = 'Mug';
Can I create an array of cups? For example:
cup[0].color = 'Blue';
cup[1].size = 'Large';
cup[2].type = 'Mug';
More From » arrays