Tuesday, August 19, 2014

Previous Interview Question Next Interview Question
Home

which of the following indicates the value of i at line 7 of the code below?

1)   function clickme(){
2)   var j=0;
3)   for(var i=0;i<=4;i++){
4)   j+=i;
5)   alert(“j is now:”+j);
6)   }
7)   alert(“i:”+i);
8)   }

    a) 0
    b) 3
    c) 5
    d) 7
    e) 10


Answer :  B

Previous Interview Question Next Interview Question
Home

1 comments :