To build your Choose your own adventure game, today you will be building a simple game loop to handle user input. Here is a quick demo:
Here is the file that makes this possible: https://repl.it/@CodeNext/gameloop#index.js