---
title: "Comment by Aarov on \"Top 5 Potent Javascript Tips and Tricks\" | Hashnode"
description: "How can I read the properties of an object in js?"
url: "https://hashnode.com/posts/top-5-potent-javascript-tips-and-tricks/6124b50d663d427e19ff9ac4/comment/612552f6663d427e19ffb0f4"
---

[Discussion](https://hashnode.com/posts/top-5-potent-javascript-tips-and-tricks/6124b50d663d427e19ff9ac4)

Comment [Top 5 Potent Javascript Tips and Tricks](https://hashnode.com/posts/top-5-potent-javascript-tips-and-tricks/6124b50d663d427e19ff9ac4)

[Aarov](https://hashnode.com/@Aarov)

[Aug 24, 2021](https://hashnode.com/posts/top-5-potent-javascript-tips-and-tricks/6124b50d663d427e19ff9ac4/comment/612552f6663d427e19ffb0f4)

How can I read the properties of an object in js?

[Gayathri Devi Srinivasan](https://hashnode.com/@GayathrideviSrinivasan)

[Aug 25, 2021](https://hashnode.com/posts/top-5-potent-javascript-tips-and-tricks/6124b50d663d427e19ff9ac4/comment/612552f6663d427e19ffb0f4#reply-6125d9ac663d427e19ffb94f)

You can use either

Object.values(data) // \['bar', 'quux'\] Object.entries(data) // \[\['foo', 'bar'\], \['baz', 'quux'\]\]

also check this once in console for better understanding.
