Hoisting is the default behaviour of javascript where all the variable and function declarations are moved on top. 1. Function Hoisting greet(); function greet() { console.log("Hello Sajin"); } Output: Hello Sajin This works because function declarations are hoisted. 2. var Hoisting console.log(name); var name = "Sajin"; Output: undefined... Weiterlesen
Intelligence View
⚡ tsecurity.de Intelligence
Hoisting in javascript
Hoisting is the default behaviour of javascript where all the variable and function declarations are moved on top. 1. Function Hoisting greet(); function greet() { console.log("Hello Sajin"); } Output: Hello Sajin This works…
Reagiere als Erste:r — dein Feedback zählt!