Difficulty: 3/10enumeration, property iteration, object introspectionThe `Object.keys()` method is used to retrieve an array of the enumerable property names of an object. It provides a way to iterate through an object's properties.CopyScenario Questions0-2 years experience1You have const user = {name: 'Alice', age: 30, active: true}. How would you get an array of its property names to render a simple list in the UI?2Write a short snippet that uses Object.keys to sum all numeric values in an object representing a shopping cart.3What would Object.keys(null) return, and how would you protect your code against that case?2-5 years experienceFollow-up QuestionsHow does Object.keys differ from Object.getOwnPropertyNames?Can you rely on the order of keys returned by Object.keys?What happens if the argument to Object.keys is null or a primitive?Suggest Improvement