Core JavaScript main classes

Core JavaScript, or the JavaScript provided by your browser, makes nine classes (read:objects) available to start developing with. These are:

  • Array
  • Boolean
  • Date
  • Function
  • Math
  • Number
  • Object
  • RegExp
  • String

All these classes are open. You can modify the class definition at runtime, in most cases to add/alter methods). This may lead to a question.

How to improve JavaScript?

Not that JavaScript is a bad language, it just lacks a standard way of doing things. What can be improved?

  • Lazying loading of JavaScript class files (Class Loading)
  • Encourage OOP coding style
  • Fix the namespacing clashes
  • Made the language less verbose

 

tags: & category: -