CIW JavaScript Fundamentals exam 1D0-435 Question # 13 Topic 2 Discussion

CIW JavaScript Fundamentals exam 1D0-435 Question # 13 Topic 2 Discussion

1D0-435 Exam Topic 2 Question 13 Discussion:
Question #: 13
Topic #: 2

Consider the following code:

<script>

var x = 0;

for (i=0; i<5; i++) {

x += i;

}

alert("1+2+3+4 = " +x);

</script>

How many times will the program loop, and what will be the final value of x?


A.

5, 10


B.

4, 9


C.

4, 5


D.

5, 5


Get Premium 1D0-435 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.