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