Update article.md
FIxed typo
This commit is contained in:
parent
8319c71e03
commit
8e8f165b28
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ For instance:
|
|||
</body>
|
||||
```
|
||||
|
||||
If we assign something to `elem.className`, it replaces the whole strings of classes. Sometimes that's what we need, but often we want to add/remove a single class.
|
||||
If we assign something to `elem.className`, it replaces the whole string of classes. Sometimes that's what we need, but often we want to add/remove a single class.
|
||||
|
||||
There's another property for that: `elem.classList`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue