does JS delete on an object property that is an object remove the key from the object or delete the entire object ? code example
Example 1: nodejs delete object key
delete obj.firstname;
Example 2: js Property Assignment delete
delete objectName['Property Name'];
delete objectName.propName;