function shapeQuestions()
{
tri = prompt("What color was the TRIANGLE?")
if( tri == "yellow" || tri == "gold" )
{
alert("Correct!")
sq = prompt("What color was the SQUARE?").toUpperCase()
if(sq == "BLUE")
{
alert("Correct! Now watch a better video")
location = "http://www.youtube.com/watch?v=k2vkwy2vdP4"
}
else
{ alert("Wrong, try again") }
}
else
{
alert("Wrong, try again")
}
} |