What does Object.keys() return?

JavaScript Associate Easy

JavaScript Associate — Easy

What does Object.keys() return?

Key points

  • Object.keys() does not include inherited properties.
  • It specifically focuses on property names, not values.
  • The method is useful for iterating over an object's keys in a loop.

Ready to go further?

Related questions