Skip to content

Conversation

ananya8606
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Oct 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jscodechallenges ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 20, 2024 5:37am


let count = 1; // Count this element

if (root.hasChildNodes()) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this check?
does root.children return [] if no children present

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved the issue

@sadanandpai sadanandpai merged commit c20e62c into sadanandpai:main Oct 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants