![]() So he took Google v8 Engine which is the fastest javascript and embedded it inside a C++ program and called that program Node. ![]() He thought it will be great to execute javascript outside the browser. In 2009 Rahn Dahl creator of NodeJS came up with the brilliant idea. These objects allow us to work with the environment in which the code is running.Now after 2009 only way to execute javascript code was inside our browser. For example you probably know in browsers we have the windows or a document object(document.getElementById(”) ). Now a browser provide a runtime environment for javascript code. And because of this varieties of engine that some time javascript code behave differently on one browser or another. Internet Explorer uses Chakra, Firefox uses SpiderMonkey and chrome uses v8. ![]() So every browser there what we called is javascript(JS) engine that takes javascript code and convert it to code that a computer can understand. Let’s see it –īefore NodeJS we use javascript only to build applications runs inside our browser. But what is the run time environment really.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |