Need help regarding decision making statements


#1


if ( prompt("is road 1 good?")==true )   //is this allowed? 
{
 console.log("lets go down the first road.");
}


#2

Hi,

You rather use confirm.. Use === to check

See I did it here
More efficient way


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.