On 2019-09-27 12:32 PM, Jon Perryman wrote:
JavaScript OO was specifically designed around DOM.
What language features do you believe have anything to do with DOM?
If you've used javascript, you will have noticed it doesn't have "CLASS". The 
functionality exists but not in a way OO programmers would expect. There are others but 
they are much harder to explain.

ECMAScript 6 introduced classes in 2015 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes. It's syntactic sugar wrapped over the prototype but everybody has started to use classes. Of course, you can
easily create objects in JavaScript simply by using closures.




----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to