Magic 8 Ball

JavaScript

This is a project for my Skillcrush JavaScript class. I was simply given the basic HTML design, and I had to create a functional Magic 8 ball with JavaScript. When you click the “Ask Me Anything” button, you trigger a prompt from the browser to type in a yes or no question. The ball shakes (thanks JQuery), and randomly prints one of my predetermined responses, just like the real Magic 8 ball I played with yesterday as a kid. Looks best on a desktop.

Magic 8 Ball

Contact Me

Photo of Brianna Hayley