What will be displayed in the user interface?

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?

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



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Alaeddin

Alaeddin

cox var x =1;
if only x=1
will be 2

but not its A , 0

YoYo

YoYo

A is the right answer.

Global variable vs Local variable.