Ultimate Quiz Challenge TH

Size
1,837 Kb
Views
18,216

How do I make an ultimate quiz challenge th?

What is a ultimate quiz challenge th? How do you make a ultimate quiz challenge th? This script and codes were developed by Brooke Shepherd on 22 October 2022, Saturday.

Ultimate Quiz Challenge TH Previews

Ultimate Quiz Challenge TH - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Ultimate Quiz Challenge TH </title>
</head>
<body> <html lang="en">
<head> <meta charset="utf-8"> <link rel="stylesheet" href="css/main.css"> <title>Ultimate Quiz Challenge</title>
</head>
<body> <div class="container"> <h1>Ultimate Quiz Challenge</h1> <script src="quiz.js"></script> </div>
</body>
</html> <script src="js/index.js"></script>
</body>
</html>

Ultimate Quiz Challenge TH - Script Codes JS Codes

// quiz begins, no answers correct
var correct = 0;
// ask questions
var answer1 = prompt("Name a programming language that's also a gem");
if (answer1.toUpperCase() === 'RUBY') { correct += 1;
}
var answer2 = prompt("Name a programming language that is also a snake");
if (answer2.toUpperCase() === 'PYTHON') { correct += 1;
}
var answer3 = prompt("What language do you use to style web pages?");
if (answer3.toUpperCase() === 'CSS') { correct += 1;
}
var answer4 = prompt("What language do you use to build the structure of web pages?");
if (answer4.toUpperCase() === 'HTML') { correct += 1;
}
var answer5 = prompt("What language do you use to add interactivity to a web page?");
if (answer5.toUpperCase() === 'JAVASCRIPT') { correct += 1;
}
// output results
document.write("<p>You got " + correct + " out of 5 questions.</p>");
// output rank
if (correct === 5) { document.write("<p><strong>You earned a gold crown!</strong></p>");
} else if (correct >= 3) { document.write("<p><strong>You earned a silver crown.</strong></p>");
} else if (correct >= 1) { document.write("<p><strong>You wearned a bronze crown.</strong></p>");
} else { document.write("<p><strong>No crown for you. You need to study!</strong><p>");
}
Ultimate Quiz Challenge TH - Script Codes
Ultimate Quiz Challenge TH - Script Codes
Home Page Home
Developer Brooke Shepherd
Username tinyinkling
Uploaded October 22, 2022
Rating 3
Size 1,837 Kb
Views 18,216
Do you need developer help for Ultimate Quiz Challenge TH?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Brooke Shepherd (tinyinkling) Script Codes
Create amazing web content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!