this is my code
confirm(“In this game you will follow the directions in the text box shown”)
prompt(“To start the game type continue the click ok”)
if(“continue”)
prompt(“An arrow is flying out of the sky at you. What will you do. Type the number of the move you want to do then press ok. --------------------------------------------------------------I: Use shield II:Try to hit with sword III:Try to run”)
if(“I.length = 1”)
confirm(“the arrow hit you in that back”)
if(“II.length > 1”)
confirm(“your sword slipped and the arrow hit you”)
if(“III.lenght > 2”)
prompt(“the arrow hit your shield and you survived. type and click ok”)
i want it so if you type one option it will have a different result but it just show the first result