Day 29 0f #100daysofjs

Photo by Nate Grant on Unsplash

Day 29 0f #100daysofjs

Exercise 2

Use javascript to create a game of snake, water and gun. The game should ask you to enter S, W or G. The computer should be able to randomly generate S, W or G and declare win or loss using alert. Use confirm and prompt wherever required.

Answer