Merge pull request #1177 from tonchique/patch-12

Update article.md
This commit is contained in:
Ilya Kantor 2019-07-23 22:50:48 +03:00 committed by GitHub
commit 9bbabfaed8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.