app.js
/* When the Flip Token button is pressed: 
    * The Flip Token button disables
    * Reset button enables
    * The image becomes either heads or tails of the Token (random)
    * The text above the button becomes either "Heads!" or "Tails!" of the Token */
When the Flip Token button is pressed:
The Flip Token button disables
Reset button enables
The image becomes either heads or tails of the Token (random)
The text above the button becomes either "Heads!" or "Tails!" of the Token
When the Flip Token button is pressed : The Flip Token button disables Reset button enables The image becomes either heads or tails of the Token ( random ) The text above the button becomes either " Heads! " or " Tails! " of the Token
function headOrTails() 
{
    resetBtn.disabled = false;
    if (Math.floor(Math.random() * 2) === 1) 
    {
        img.src = 'images/heads.jpg';
        headTails.innerText = 'Heads!';
    } 
    else 
    {
        img.src = 'images/tails.jpg';
        headTails.innerText = 'Tails!';
    }
    flipBtn.disabled = true;
}
function headOrTails ( ) { resetBtn . disabled = false ; if ( Math . floor ( Math . random ( ) * 2 ) === 1 ) { img . src = 'images/heads.jpg' ; headTails . innerText = 'Heads!' ; } else { img . src = 'images/tails.jpg' ; headTails . innerText = 'Tails!' ; } flipBtn . disabled = true ; }
When the Flip Token button is pressed:
 The Flip Token button disables
 Reset button enables
 The image becomes either heads or tails of the Token (random)
 The text above the button becomes either "Heads!"
When the Flip Token button is pressed : The Flip Token button disables Reset button enables The image becomes either heads or tails of the Token ( random ) The text above the button becomes either " Heads! "