---
title: "Discussion on \"NodeLists vs HTMLCollection\" | Hashnode"
description: "Discussion on \"NodeLists vs HTMLCollection\". You might have wondered that you can use methods like forEach() on the output you got from querySelectorAll(), but on the other hand when you use getElementsByTagName() you can't use methods like forE"
url: "https://hashnode.com/posts/nodelists-vs-htmlcollection/69b9c174c22d3eeb8a01132f"
---

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

Discussion

# [NodeLists vs HTMLCollection](https://vickyxcodes.hashnode.dev/nodelists-vs-htmlcollection?utm_source=hashnode&utm_medium=feed)

You might have wondered that you can use methods like forEach() on the output you got from querySelectorAll(), but on the other hand when you use getElementsByTagName() you can't use methods like forE

Mar 17 · 5 min read · vickyxcodes.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)
-   [#htmlcollection-vs-nodelist](https://hashnode.com/tag/htmlcollection-vs-nodelist)

## Written by

[Vicky](https://hashnode.com/@vickyxcodes)

@vickyxcodes

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

Writing what i learn

I am learning Web Dev, and i write to enrich my skills and learnings.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
