Need help regarding decision making statements


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



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

See I did it here
More efficient way


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