Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
149
rated 0 times [  152] [ 3]  / answers: 1 / hits: 31343  / 15 Years ago, fri, november 13, 2009, 12:00:00

According to this article it should be a Javascript 2.0 way to define class. However, I never saw that in practice. Thus the question. How to use class keyword and what is the difference between Javascript 1.x way of doing things?


More From » class

 Answers
2

The reason you never saw the class keyword used in practice is that all the current implementations of JavaScript are 1.x.



JavaScript 2.0 was merged into ECMAScript 4 which was rather unpopular and so never made it into the real world.



So to answer your question, how do you use the class keyword? You can't.


[#98321] Monday, November 9, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sheylap

Total Points: 141
Total Questions: 99
Total Answers: 99

Location: Sint Maarten
Member since Tue, Mar 29, 2022
2 Years ago
;