How to make an easy text game by using JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make an easy text game by using JavaScript?

3rd Aug 2016, 10:17 AM
Blugon
2 Answers
+ 1
Create a question / response script with some yes and no options - use prompt.("") to get input from user and if : then : else statements to reply and build the game.
4th Aug 2016, 2:18 AM
Tee
Tee - avatar
0
Well for starters you put document.write("what ever your text is)"
3rd Aug 2016, 2:11 PM
Alexander