- what is Execution context (varaible environment and thread of execution)
- what is javascript - syncronus single thread programming , weekly typed language
- Scope Chain – A linked list of lexical environments.
- encapsulation (data privacy)
- scope
- closures - Closures Keep Variables Alive Even After Execution
- garbage collecter
- block
- block scope
- function scope
- variable shadowing
- temporal dead zone
- hoisting
- lexical scope & rule -
- global scope
- varaiable environment (VE) – Stores local variables, function declarations, and arguments.
- lexical environment (LE) – Reference to the parent’s scope.
- call stock / (main thread)
- event loop
- microtask queue
- callback queue //
- web api (settimeout and setInterval)
- Promises (custom promise create)
- call back function - passing function to another function
- function statement
- function expression
- anonymous function
- iifE
- javascript enigne (type browser and jse name)
- type coercion (value type convert to another type)
- == and === (allow type coercion and now allowed)
- truthy and falsy (0,"",[],null => falsey) => rule want to read
- null and undefined (placeholder until value intialized or re-assigned)
- this === window
- first class functions
- try catch / then ..catch
- mutation obeserver + promise
- starvation - callback queue waiting time
- parsing & compilation & exection / Ast, interperter, compiler (optimization) , JIT compilation / memory heap, mark & sweep algorithm, garbage collector / algorithm - inlining , copy elision, inline caching
- higher order function
- callback hell
- inversion of control
- optional chaining (? & !)
- promise chaining
- async - always return promise even you return primitive values / await - always inside aysnc function and front of promise add await and it is resovle the promise / suspend the function execution
- Promise.race() - returns the first settled promise (fulfilled or rejected) → Best for timeouts. Promise.any() - returns the first fulfilled promise (ignores failures) → Best for fastest successful API call. Promise.allSettled() - waits for all promises to settle and returns their status → Best for logging all results. Promise.all()- Parallel API Calls: When you need multiple async operations to all succeed, and any failure should immediately stop the execution. Bulk Data Processing: When multiple files or resources are being processed, and you want to handle all at once.
-
Notifications
You must be signed in to change notification settings - Fork 0
pr2361995/learning_projects
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published