3 ms·
className has always been the convention for accessing the class attribute in Javascript. https://developer.mozilla.org/en-US/docs/Web/API/Element/className ht
by t3soro 10y ago
className has always been the convention for accessing the class attribute in Javascript.
https://developer.mozilla.org/en-US/docs/Web/API/Element/className https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...
- cri5ti 10y agoAnd that's of course because pre ES5 you couldn't use keywords (class) as property names.