What is the expected output?


Given the code below:

Function myFunction(){

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 08 thrones an error, therefore line 09 is never executed.
D . Both lines 08 and 09 are executed, but values outputted are undefined.

Answer: B