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 are defined throughout the enclosing function. 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}