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
  • Web API: Asynchronous functionality.
  • Working process:

Was this helpful?

JavaScript RunTime

JavaScript run time is created when the code is executed. (Call Stack + Memory Heap + Web API + Event Loop + Call back Queue)

PreviousSingle ThreadNextNodejs

Last updated 5 years ago

Was this helpful?

Web API: Asynchronous functionality.

Working process:

  • When the code executed, JavaScript run time is created.

  • When the function are pushed into the call stack, the functions belonged to Web API will be send to the Web API by call stack for he process.

  • When the web API receives the function, it will process the functions, and then it is send to the call back queue.

  • Then the processed function in the call back queue will be send to the event loop to send to the call stack.

  • After receiving the processed function, event loop pushes the function to the call stack, when it is empty. ( waits until the call stack is empty )

  • Then the function will be executed in the call stack.

Asynchronous functionality.