Q: Why is .onclick not typed .onClick in javascript? A (my words): It's convention. It's the way event handler properties are named. Historic reasons. Consistent with how HTML attributes are named. So just memorize the darn thing! .onclick .onclick ....
Markdown supported · ⌘↵ to post
No responses yet.