Posts

Showing posts from October, 2021

JavaScript Engine

Image
JavaScript can run everywhere because of JavaScript Runtime Environment. It is like a container which has everything inside it required to run a JavaScript code. JavaScript engine is the most significant part of JSRE. All browsers have their own JSRE which helps them in executing the JS code. JavaScript Engine It is neither a software or a hardware, it is a program written in low level language. Some of the popular JS engines are -  V8 from  Google . SpiderMonkey  is developed by  Mozilla  for use in Firefox and its forks. JavaScriptCore  is  Apple's engine for its Safari browser. Chakra  is the engine of the  Internet Explorer  browser. It was also forked by Microsoft for the original Edge browser, but Edge was later rebuilt as a Chromium-based browser and thus now uses V8. JavaScript can behave like both interpreted and compiled language. It simply depends on JavaScript Engine. In case of interpreter, we have speed and in case of compiler, we have efficiency. Initially, JS wa