Capgemini Interview Question

What is the difference between var and let keywords in Angular?

Interview Answer

Anonymous

Apr 28, 2021

The main difference is regarding scope of variable, where let is a limited to a block in which it is declard and where var has a global scope.