I would like to create multiple instances for apple in below code. how to achieve it. I don't want to change my object defining style.
var apple = {
type: "macintosh",
color: "red",
getInfo: function () {
return this.color + ' ' + this.type + ' apple';
}
}
Thanks In Advance.