how to add values to a javascript list of objects code example Example: how to add object to list in javascript var a=[] var b={}; a.push(b);