This is a magic 8 ball program written in html and javascript. So it's very lean fast and quick. You…