The for...in loop iterates over the enumerable properties of an object, including properties inherited from its prototype chain.
The Object.keys() method returns an array of an object's own enumerable property names, which you can then iterate through using a loop.
The Object.values() method returns an array of an object's own enumerable property values. You can use this method in combination with a loop to access these values.
The Object.entries() method returns an array of an object's own enumerable property [key, value] pairs. You can loop through these pairs to access both keys and values.
forEach() Method (for Objects)
While forEach() is often used with arrays, it can also be used for objects with a slight workaround using Object.entries().