First we go to the abstraction level, the deepest level,
Micro Processors are smallest portion of computers, which you can
use microprocessor speaks language. Not all microprocessor are
not speak the same language. So we need to have a common language,
or a standard for that. What happens is that this languages have
to be transated in to Machine Code. So what is Machine Code?
Machine Code is a computer programming language consisting of binary
or hexadecimal instructions which a computer can respond to
directly and also readable to them.
So there is a level of abstraction
So Javascript is a high end language, which programmers can use
easily.
So now why are we needing this?
The thing is that Node is written in C++, so do we need to learn
C++ as well, no actually you don't need to know C++ to use node,
but you need to know Javascript. V8 is written in C++, if you want
to do a modifictaioon , you can use V8's code and change
for your need. V8 is the engine which turns Javascript code in in
to machine code,which is amazing for browser based language. Isn't it?
Now lets's learn about ECMAScript, ECMAScript is the standard
that javascript based on.Javascript invented first but
then different browsers, companies tried their own versions.
But that makes complicated for developers. So what happened is that
then people have to agreed to have standard, So they have ECMAScript.
So what ever Javascript engine a company would use, to have this
specifications. What is Javascript engine? A program that converts
javascript code into something the computer processors can understand.
Micro Processors are smallest portion of computers, which you can
use microprocessor speaks language. Not all microprocessor are
not speak the same language. So we need to have a common language,
or a standard for that. What happens is that this languages have
to be transated in to Machine Code. So what is Machine Code?
Machine Code is a computer programming language consisting of binary
or hexadecimal instructions which a computer can respond to
directly and also readable to them.
So there is a level of abstraction
So Javascript is a high end language, which programmers can use
easily.
So now why are we needing this?
The thing is that Node is written in C++, so do we need to learn
C++ as well, no actually you don't need to know C++ to use node,
but you need to know Javascript. V8 is written in C++, if you want
to do a modifictaioon , you can use V8's code and change
for your need. V8 is the engine which turns Javascript code in in
to machine code,which is amazing for browser based language. Isn't it?
Now lets's learn about ECMAScript, ECMAScript is the standard
that javascript based on.Javascript invented first but
then different browsers, companies tried their own versions.
But that makes complicated for developers. So what happened is that
then people have to agreed to have standard, So they have ECMAScript.
So what ever Javascript engine a company would use, to have this
specifications. What is Javascript engine? A program that converts
javascript code into something the computer processors can understand.
Comments
Post a Comment