Javascript – Why after calling "defineProperties", my object became empty
I have this object const product = { name: "Laptop", price: 1000, quantity: 5 }; console.log(product) //{ name: 'Laptop', price: 1000, quantity: 5 } but then I should to do this: const descriptors = { enumerable: false, writable: false };…