how to empty a javascript object code example Example 1: how to initialize empty javascript object let obj = {}; Example 2: javascript create object empty var empty_obj = {};