The Difference Between className & classList in JavaScript
In todayβs video we take a look at the differences between the className and classList in property. Both are used to read and change classes on an HTML element, but differ fundamentally.
For your reference, check this out:
https://developer.mozilla.org/en-US/docs/Web/API/Element/classList
π« My Udemy Courses β https://www.udemy.com/user/domenic-corso/
π¨ Download my VS Code theme β https://marketplace.visualstudio.com/items?itemName=dcode.dcode-theme
π Join my Discord Server β https://discord.gg/TXMQyvbpcA
π¦ Find me on Twitter β https://twitter.com/dcodeyt
πΈ Support me on Patreon β https://www.patreon.com/dcode
π° Follow me on DEV Community β https://dev.to/dcodeyt
πΉ Join this channel to get access to perks β https://www.youtube.com/channel/UCjX0FtIZBBVD3YoCcxnDC4g/join
If this video helped you out and youβd like to see more, make sure to leave a like and subscribe to dcode!
#dcode #javascript