You are troubleshooting a web page that includes the following code segment.
You need to evaluate the value of the variable x.
What will be displayed in the user interface?
A.
0
B.
1
C.
2
D.
An error
You are troubleshooting a web page that includes the following code segment.
You need to evaluate the value of the variable x.
What will be displayed in the user interface?
A.
0
B.
1
C.
2
D.
An error
cox var x =1;
if only x=1
will be 2
but not its A , 0
A is the right answer.
Global variable vs Local variable.
+1
+1