how to update empty object in javascript code example Example: javascript create object empty var empty_obj = {};