Pergunta de entrevista da empresa Capgemini

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

Resposta da entrevista

Sigiloso

28 de abr. de 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.