Skip to content

Instantly share code, notes, and snippets.

View jigneshthummar's full-sized avatar

Jignesh Thummar jigneshthummar

View GitHub Profile
@jigneshthummar
jigneshthummar / js-ts-es6-reactjs.js
Last active February 21, 2022 17:55
JavaScript / TypeScript / ES6 / ReactJS - CheatSheet
Variables & Constants
//-------------------------------------------------------------------------//
| # | var | let | const |
|-----------------|-----|-----|-------|
| global scoped | yes | no | no |
| function scoped | yes | yes | yes |
| block scoped | no | yes | yes |
| redeclarable | yes | no | no |
| reassignable | yes | yes | no |
| can be hoisted | yes | no | no |