Tuesday, August 19, 2014

Previous Interview Question Next Interview Question
Home

which of the following is depicted by the code snippet below?

var snowTires=new Array('tire 0','tire 1','tire 2','tire 3','tire 4')
for (var i=0;1<snowTires.length;i++){
if (snowTires[i]){
alert("snowTires" +i+ "is available");
}
else{
alert("snowTires" +i+ "is not available");
}
}

        a)      It is a for looping through an array
        b)      It is just a basic for loop
        c)       It is meant to generate an error message
        d)      It is only an if statement


Answer :  A

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment