What is the expected output?
Given the code below:
FunctionmyFunction(){
A =5; Var b =1;
}
myFunction();
console.log(a);
console.log(b);
What is the expected output?
A . Both lines 08 and 09 are executed, and the variables are outputted.
B . Line 08 outputs the variable, but line 09 throws an error.
C . Line 08thrones an error, therefore line 09 is never executed.
D . Both lines 08 and 09 are executed, but values outputted are undefined.
Answer: B
Latest JavaScript Developer I Dumps Valid Version with 144 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments