Reactjs Interview Question
1. What is JavaScript Call Back ? Sol: A Call Back is Function Passed as an argument to another Function. 2. What is Promises in JavaScript ? Sol: Promises were introduced in the ES6 version in 2015. It Contain Producing Code and Consuming Code . 3. What is Difference Let and Var ? Sol: (a) Let is a Block scope and Var is Function Scope. (b) Let does not allowed Redeclared variables and Var allows to Redeclared variables. (c)Let is Featured of Es6 and Var is ECMAScript1 Feature. (d)Hoisting is not allowed in Let and Hoisting is allowed in Var. 4. What is a closure in java script ? sol: Closure is a inner function that can access the outer function variables as well ...