---
title: "Discussion on \"JavaScript: Count the object depth\" | Hashnode"
description: "Discussion on \"JavaScript: Count the object depth\". let myObj = {\n  name: 'hari',\n  location: {\n    city: 'hyderabad'\n  },\n  a: {\n    b: {\n      c: {\n        d: {\n          e: {\n            f: {\n              g: {\n                h: {\n                  i: 10\n                }\n              }\n         ..."
url: "https://hashnode.com/posts/javascript-count-the-object-depth/630c408c56df9e8e5025043d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript: Count the object depth](https://harikrishna.hashnode.dev/javascript-count-the-object-depth?utm_source=hashnode&utm_medium=feed)

let myObj = { name: 'hari', location: { city: 'hyderabad' }, a: { b: { c: { d: { e: { f: { g: { h: { i: 10 } } ...

Jan 6, 2022 · 1 min read · harikrishna.hashnode.dev  
Read the article

-   [#recursion](https://hashnode.com/tag/recursion)
-   [#depth-of-object](https://hashnode.com/tag/depth-of-object)
-   [#typeof](https://hashnode.com/tag/typeof)

## Written by

[Hari Krishna Anem](https://hashnode.com/@hkrishna)

@hkrishna · Hyderabad, India

  
[View profile](https://hashnode.com/@hkrishna)

Full stack developer

Full stack developer (ReactJS, NodeJS, JavaScript, PHP, SQL)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
