Skip to content

abhinav0git/JS-Docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript Doc

a sort-of guide to revise/learn JS

1) Basics of JavaScript

  • Variables (how variables work)
  • var, let, const
  • hoisting of variables

2) Functions

  • Arrow Functions
  • Higher Order Functions

3) Arrays and Objects

  • Array De-structuring
  • Object De-structuring
  • rest operator
  • spread operator

4) Conditions in JavaScript

  • if else
  • ternary operators
  • using && and ||
  • Optional chaining

5) Array Methods

  • map()
  • filter()
  • reduce()
  • sort()

6) Event Listeners

  • onClick
  • onBlur
  • onChange
  • onFocus
  • setTimeout() & setInterval()
  • EventBubling and EventCapturing method

7) Asynchronous Events

  • Callbacks
  • Callback Hell
  • Promises
  • Promise APIS

8) Async Await

9) Try Catch


all the js you need to know for react.js (almost)

  • Use arrow functions for cleaner code and better callback handling.
  • Utilize ternary operators for concise conditionals in React's JSX.
  • Understand object destructuring and copying with spread operator.
  • Employ the .map() function for rendering dynamic lists in React.
  • Use .filter() function to manipulate and filter arrays in React. Understanding searching and filtering through lists using .filter() function.
  • Key concepts: Promises, async/await, and data fetching with Fetch API are crucial for web development and communication with APIs.