<!DOCTYPE html>
<html>

  <head>
    <link rel="stylesheet" href="style.css">
    <script src="script.js"></script>
  </head>

  <body>
    <button type="button" onclick="callask()">Call Ask</button>
    <div id="result"></div>
  </body>

</html>
// Code goes here



function callask(){
confirm("I am ready to play!");
var age = prompt("What\'s your age");
var txt ="";
if (age < 13)
{
  txt = txt + "<br>" + "You allowed to play but we don\'t take any responsibility.";
}
else
{
   txt = txt + "<br>" + "Play";
}

 txt = txt + "<br>" + "You at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'";
 txt = txt + "<br>" + "Suddenly beber stops and says, 'Who wants to race me?'";
var userAnswer = prompt("Do you want to race Bieber on stage?");
if (userAnswer === "yes")
{
    txt = txt + "<br>" + "YouBieber start racing. It\'s neck and neck! You win by a shoelace!";
}
else
{
    txt = txt + "<br>" + "Oh Bieber shakes his head and sings \'I set a pace, so I can race without pacing.\'";
}

var feedback = prompt("Rate game!");
if(feedback > 8)
{
     txt = txt + "<br>" + "Thank you! We should race at the next concert!";
    }
    else {
        txt = txt + "<br>" + "I\'ll keep practice coding and racing.";
        }
      
document.getElementById("result").innerHTML = txt;  
}
/* Styles go here */