-
Notifications
You must be signed in to change notification settings - Fork 3
FlexibilityAndDynamic
PhoenixAndMachine edited this page Apr 7, 2014
·
42 revisions
One of the most powerful features of Javascript is its flexibility. The language allows several different programming styles. Programmer can write the code in functional style or in slightly more complex object-oriented style. Programmer does not need to specify the type of variable when they declare them, it is assigned during run-time. The attributes and methods of class and instance can be modified at run-time as well, which makes Javascript dynamic. You can not accomplish that in the traditional object-oriented languages, such as C++ and Java. Let's take a look at these features of Javascript through examples.
1.2 Scope, Nested Function and Closure
1.3 Loosely-typed