The main difference between the variables declared with var and with let is __________

The main difference between the variables declared with var and with let is __________ Correct Answer let is confined to a particular function but var is not

Variables declared with var have global scope whereas variable declared with let have block scope. Variables declared with let are defined only within the closest enclosing block (and any blocks nested within it, of course).

Related Questions

If A = x% of y and B = y% of x, then which of the following is true?
What is the value of var? $var = 'HELLO WORLD!'; $var = ucfirst($var);
The main difference between the variables declared with var and with let is
Suppose X and Y are random variables with E(X) = 37, var(X) = 5, E(Y) = 62, and var(Y) = 12. What are the expected value and variance of the random variable X + Y?
Comment on the output of the following C code.
#include #define var 20);int main(){ printf("%d\n", var}