Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
t3soro
· 10y ago · 0 comments
className has always been the convention for accessing the class attribute in Javascript.
https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...
Comments
[–]
cri5ti
10y ago
And that's of course because pre ES5 you couldn't use keywords (class) as property names.