JavaScript
  • JavaScript Introduction
  • JS Engine
  • V8 Engine
  • First-class function
  • Optimized Code
  • Call Stack & Memory heap
  • Single Thread
  • JavaScript RunTime
  • Nodejs
  • Context and Environment
  • Hoisting
  • Functions
  • Arguments
  • Variables
  • Scope
  • IIFE
  • this
  • call(), apply() and bind()
  • currying
  • Types
  • Type Coercion
  • Functions as Object
  • HOF (Higher Order Function)
  • Two pillars of Javascript
  • Closures
  • Prototypal Inheritance
  • OOP and FP
  • OOP
    • 4 principles of OOP
  • FP
    • Pure function
    • Imperative vs Declarative
    • Immutability
    • HOF and Closures
    • Currying
    • Partial Application
    • Compose and Pipe
  • Composition vs Inheritance
  • OOP vs FP
  • JS working
  • Promises
  • Async Await
  • ES5 - ECMAScript 2009
  • ES6 - ECMAScript 2015
  • ES7 - ECMAScript 2016
  • ES8 - ECMAScript 2017
  • ES9 - ECMAScript 2018
  • ES10 - ECMAScript 2019
  • ES11 - ECMAScript 2020
  • ES12 - ECMAScript 2021
  • JOB Queue
  • Promises Execution
Powered by GitBook
On this page
  • Interpreters:
  • Compilers:
  • Inside V8 Engine

Was this helpful?

V8 Engine

Inside V8 Engine

PreviousJS EngineNextFirst-class function

Last updated 6 years ago

Was this helpful?

Interpreters:

Reads the js code line by line and converts to binary code and provides the result.

Cons: Execution time for repeated code will be longer.

Compilers:

Reads the entire code in the js file and converts to another language and provides the result.

Pros: Less execution time is taken for the repeated code execution.

Inside V8 Engine

V8 Engine = Interpreter + Compiler = JIT (Just in Time) Compiler

Inside V8 Engine