Question: Using the coin flip file form class, create a web page that will allow the user to toss a coin as often as desired. Use

Coin Flip
function coinFlip() { var heads = ""; var flip = Math.floor(Math.random()* 2); if (flip == 0) { flip - heads; document.getElementById("coin").innerHTML } else{ flip = tails; document.getElementById("coin").innerHTML } }Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
