The Startup
Published in

The Startup

Creating a Magic 8 Ball in HTML5 with JavaScript

The Magic 8 Ball is a well known toy used for seeking advice. It has been developed in the 1950s by Mattel. The principle is quite easy. The user asks a yes-or-no question to the Magic 8 Ball which is a large plastic ball. Then, the user turns the Magic 8 Ball over to reveal a written answer which appears on the surface.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sylvain Saurel

Sylvain Saurel

Entrepreneur / Developer / Blogger / Author. In Bitcoin We Trust: https://inbitcoinwetrust.substack.com/