Difference between var, let, const?
Answer / Manoj Kumar Meena
var is function-scoped and has a global scope when not defined within a function. It can be reassigned and does not have block scoping.
let is block-scoped (only accessible within the curly braces) and can be reassigned.
const is block-scoped (only accessible within the curly braces) and cannot be reassigned.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is mvc5?
How can you decrease the digest cycle time?
Explain angular elements?
Do you know scope in angularjs?
What is two way data binding in angularjs?
How many types of ngmodule?
What is urlsegment interface in angular 7?
We already use angular 1, why do we need an angular 2?
How do you share data between controllers in angularjs?
What is $emit, $broadcast and $on in AngularJS?
What is dependency injection (di) in angular?
How do you exchange data among different modules of your angular js application?