Question: what is the difference between let and var in angular 2?
Answer: The main difference is the scope difference, while let can be only available inside the scope it's declared, like in for loop, var can be accessed outside the loop for example. ... let allows you to declare variables that are limited in scope to the block, statement, or expression on which it is used.