Skip to main content

JavaScript, Redux & React

Redux is a state management library that helps you better manage state in your applications.

The Redux library is not specific to React. It's a library that you can use in any other library or framework like Angular, Vue, and even vanilla JavaScript.



Javascript is executed by browser with the help of execution engine as:
  • Firefox -SpiderMonkey
  • Chrome -V8 
ES6 - use let in place of var
Equality Operator
  • "===" type and valuecompared
  • "==" value only compared
Following are considered False
  • undefined
  • null
  • 0
  • false
  • NaN
  • ' '
Special loops in javascript:
  • For...In
    • for(let item in items){}
  • For...of
    • for(let item of items){}
  • For
    • for(let i=0;i<10;i++){}

Basic rule in javascript - Avoid using Global variables.

Comments

Popular posts from this blog

API Basics

 

Algorithm solving Common Patterns & Techniques

  These are targeted data manipulation strategies used to handle arrays, strings, and linked lists efficiently. Two Pointers : Uses two reference pointers to iterate through a data structure simultaneously, typically from opposite ends or at different speeds (Fast & Slow pointers). Sliding Window : Maintains a subset of data (a "window") over a sequential structure to track running statistics without recalculating the whole set. Prefix Sum : Pre-computes and stores cumulative sums of an array to allow for \(O(1)\) constant-time range sum queries. Dynamic Programming (DP ): Dynamic programming is an optimization technique used to solve problems by breaking them down into simpler subproblems and storing the results of these subproblems to avoid redundant computations. It is particularly effective for problems exhibiting overlapping subproblems and optimal substructure. Greedy Algorithm Breadth-First Search (BFS) / Depth-First Search (DFS) : Systematic graph and tree travers...