Beiber CodeCademy Lesson

Declaring DOCTYPE Version

My Code:

[[html]]
 <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8"/>
    <title>Test</title>
    <style>
.boxtop {
    background-color: #ebebeb;
   }
    </style>
    <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
        <script type="text/javascript" src="script.js"></script>
    </head>
    <body>
    <div class="boxtop">
    <script>

// Check if the user is ready to play!
confirm("are you ready to play?");
var age = prompt("What's your age?");
if (age < 13) {
    document.write("You can play but I take no responsibility for injuries." + "<br><br>");
    } else {
        document.write("Atta boy, or girl. Carry on!"); }

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

var feedback = prompt("Rate this game on a scale of 1 to 10");
if (feedback > 8) {
    document.write("Thank you! We should race at the next concert!");
} else {
    document.write("I'll keep practicing coding and racing."); }

    </script>
    </div>
    </body>
    </html>
    [[/html]]