---
title: "Discussion on \"Difference Between classList and className\" | Hashnode"
description: "Discussion on \"Difference Between classList and className\". We use classList and className on JavaScript DOM to manipulate classes from the element. These two DOM property has different use cases. Let's see what is the main difference between them.\nclassList\n\nUsing classList, you can add or remove a class wit..."
url: "https://hashnode.com/posts/difference-between-classlist-and-classname/5fccab38f9aad2092499a6a5"
---

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

Discussion

# [Difference Between classList and className](https://microrony.hashnode.dev/difference-between-classlist-and-classname?utm_source=hashnode&utm_medium=feed)

We use classList and className on JavaScript DOM to manipulate classes from the element. These two DOM property has different use cases. Let's see what is the main difference between them. classList Using classList, you can add or remove a class wit...

Dec 6, 2020 · 2 min read · microrony.hashnode.dev  
Updated Dec 31, 2020  
Read the article

-   [#dom](https://hashnode.com/tag/dom)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#class](https://hashnode.com/tag/class)
-   [#html](https://hashnode.com/tag/html)

## Written by

[Mahabubur Rahman](https://hashnode.com/@microrony)

@microrony · Bangladesh

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

Front-End Developer | JavaScript/React 💥 | Linux 👨‍💻 | WordPress | Humble. 🙂

## Responses 1

Markdown supported · ⌘↵ to post

[Jafet Calcaneo](https://hashnode.com/@Jafet)

[Jul 31, 2021](https://hashnode.com/posts/difference-between-classlist-and-classname/5fccab38f9aad2092499a6a5/comment/6104931333a2a43971a2bcaa)

Straightforward and simple
