Syntax question

I was wondering how to get a button to open a number guessing game in HTML. Does anyone know how to do it?

P.S.
I want the game to be placed inside alerts.

Welcome to Codecadamy,

Unfortunately your question is to broad to give an answer for.

You could check out the Javascript course. This is a great starting point for developing games in your browser. They also handle alerts.

There is also a course special for gamedevelopment that is using phaser.js, but personally i think its better to start with the basics and im not sure this course handles that.

Hope this helps.

2 Likes