Intro
Javascript
-
Lightweight
-
Interpreted
-
Designed for creating network-centric application
-
Integrated in HTML
-
Object-Oriented capabilities
- It has objects which can contain data and methods that act upon that data.
- It does not have classes, but it does have constructors which do what classes do, including acting as containers for class variables and methods. It does not have class-oriented inheritance, but it does have prototype-oriented inheritance.
- The two main ways of building up object systems are by inheritance (is-a) and by aggregation (has-a). JavaScript does both, but its dynamic nature allows it to excel at aggregation.
-
Open and cross-platform
-
Untyped language (JavaScript variable can hold value of any data type)
-
Single Threaded
Advantages of JavaScript
- Less server interaction
- Immediate feedback to visitors
- Increased interactivity
- Richer interfaces
Syntax
- Case sensitive