Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
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); } }
Home
ECMAScript
What is the scope of the variable "a" in function below? function val(x){ if(x>0){ let a = x;...
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
...