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

Was this helpful?

JS working

JS is a single threaded language that can be non-blocking.

What is Program?

  • allocating memory ( for variables ).

  • parsing (read) and executing (run)

JavaScript Engine:

  • Memory Heap

  • Call stack

Memory Leak:

When the unused variables are increased with huge data, this occurs. so global variables are not preferable.

Call Stack:

Reads the function and push it into the stack, executes the function and pops out the stack.

First In Last Out or Last In First Out.

Single Threaded:

It means having only one call stack.

Why Single thread?

Running a code in single thread is quite easy, since it don't have to deal with complected scenarios that rise in multi threaded environment. We have one thing to worry about. We can avoid deadlock as it is in Multi threaded.

Synchronous:

Code is executed only after the previous line of the code is executed.

Stack Overflow:

It is occurred when the call stack is full, no space for the execution.

JavaScript Run-Time:

PreviousOOP vs FPNextPromises

Last updated 5 years ago

Was this helpful?

JavaScript Run-Time