Recently I have attended a session on JavaScript basics and very eager to know something we don't know. I am here to discuss some points about JavaScript.
-- Basically JavaScript is an Object-Oriented Scripting Language but no relation with Java. Only name have relation.
-- Engineer from Netscape company created Scripting Language "Mocha" for their browser Netscape Navigator. Then renamed as LiveScript.
-- Then Microsoft created their implementation of Scripting Language for their browser and named as JScript for IE.
-- Then ECMA(European Computers Manufacturers Association) took and standardized as ECMA Script. But for marketing purpose they named as JavaScript because Java is familiar in the world.
-- We can also create classes using Prototypes like
-- Dynamic variable types - No static types of variables. All are variants here. No need to worry about variable types.
-- Anonymous functions ie. Assigning a function definition to a variable without function name.
-- Closures - Nested functions. Inner function will access the outer function's details but Outer function can't access inner function's details.
-- The Scripts are executed by JavaScript engine provided by respective browsers.
IE - Chakra
Mozilla - TraceMonkey, JagerMonkey
Chrome - V8 engine
Safari - Nitro
-- These Engines are called as Interpreter OR you can take it as JavaScript Virtual Machine.
Hope this will give idea about JavaScript. I will continue this post later....
-- Basically JavaScript is an Object-Oriented Scripting Language but no relation with Java. Only name have relation.
-- Engineer from Netscape company created Scripting Language "Mocha" for their browser Netscape Navigator. Then renamed as LiveScript.
-- Then Microsoft created their implementation of Scripting Language for their browser and named as JScript for IE.
-- Then ECMA(European Computers Manufacturers Association) took and standardized as ECMA Script. But for marketing purpose they named as JavaScript because Java is familiar in the world.
-- We can also create classes using Prototypes like
- function myClass(){
- //some definition
- }
- myClass.prototype.function = myFunc1() {
- // Some function definition
- }
-- Anonymous functions ie. Assigning a function definition to a variable without function name.
- var myVariable = function() {
- //some definition
- }
-- The Scripts are executed by JavaScript engine provided by respective browsers.
IE - Chakra
Mozilla - TraceMonkey, JagerMonkey
Chrome - V8 engine
Safari - Nitro
-- These Engines are called as Interpreter OR you can take it as JavaScript Virtual Machine.
Hope this will give idea about JavaScript. I will continue this post later....
Comments
Post a Comment