Skip to content

A simple webpage with a button to active and toggle JavaScript to Toss a virtual coin and show a result as heads or tails.

License

Notifications You must be signed in to change notification settings

CoderAgam001/CoinTossGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoinTossGame

This projects is lisenced under Creative Commons so it can be re-used and re-dristibuted freely without any conflicts.

Functioning of the code:

HTML: The basic structure: A simple button which has "tossCoin()" which is responsible for activating and toggling the JS, which is used to play the game. Text as heading as Page Heading and Disclamier (can be ignored) and paragraphs as a simple instruction to play it and disclamier text.

CSS: Adds all the styling to the elements of the webpage/game.

JS: When the button is pressed, the function linked to it activates and generates a random number which greater than or equal to 1 and cannot be smaller than 2.

About

A simple webpage with a button to active and toggle JavaScript to Toss a virtual coin and show a result as heads or tails.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published