Lab 2 done -
02-22-2015, 12:00 PM
Lab 2 was not very hard until the If statement with three "yes". I was lost until I asked the instructor. He provided this:
var cont = 1
while (cont==1)
{
Object jump
var resp = prompt("Do you want to continue?");
if (resp=="YES" or resp=="Yes" or resp=="yes")
{
cont=1
}
else
{
cont=0
}
}//end while[/SIZE]
Thank you. I understand a little more everyday.
|