What I want to do with the fs object is to add multiple "items" to the fs.items property. How can I do this? You can see my attempt below, obviously this does not work.
I am a beginner, go easy on me :)
Thanks...
var fs = {
name:'test',
items:[]
};
fs.items = {
name:'item1',
value:1
};
fs.items = {
name:'item2',
value:2
}