Day 22 of #JavaScriptChallenge by @ChaiCodeHQ @Hiteshdotcom - this & Arrow Functions in JS -this depends on how a function is called - Arrow functions inherit this (lexical scope) - Node.js → this = {} | Browser → this = window - Explicit return → {} | Implicit return → no {}

codeXninjaDev's tweet image. Day 22 of #JavaScriptChallenge by @ChaiCodeHQ @Hiteshdotcom
- this & Arrow Functions in JS
-this depends on how a function is called
- Arrow functions inherit this (lexical scope)
- Node.js → this = {} | Browser → this = window
- Explicit return → {} | Implicit return → no {}

United States Trends
Loading...

Something went wrong.


Something went wrong.