In JavaScript, objects are king. Almost everything is an object. Objects are variables that can contain many values. Object values are written as name:value pairs (key:value).
Object.keys(obj) — returns array of keysObject.values(obj) — returns array of valuesObject.entries(obj) — returns array of [key,value] pairs{ ...obj }const { name } = objEdit the code below and click Run to see the result live.