Login
Remember
Register
Ask a Question
What is the scope of the variable "a" in function below? function val(x){ if(x>0){ let a = x; console.log(a); } }
0
votes
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
What is the scope of the variable "a" in function below?
function val(x){
if(x>0){
let a = x;
console.log(a);
}
}
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 21, 2020
by
GeorgeBell
Block
...