Ultimate Quiz Challenge TH
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 - 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>");
}
Developer | Brooke Shepherd |
Username | tinyinkling |
Uploaded | October 22, 2022 |
Rating | 3 |
Size | 1,837 Kb |
Views | 18,216 |
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!
Name | Size |
CABieberGame | 1,779 Kb |
WCC2 | 1,347 Kb |
Early Pattern for Function FCC | 1,463 Kb |
Story Maker TH | 1,646 Kb |
Programming Quiz TH JS | 1,552 Kb |
Random Number Generator TH | 1,602 Kb |
Random Number Challenge TH JS | 1,602 Kb |
Random Guessing Game II TH | 1,618 Kb |
Profile Lookup FCC JS challenge | 1,772 Kb |
Factorialize FCC | 3,425 Kb |
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!
Name | Username | Size |
Image grid with captions | Mchernin34 | 2,222 Kb |
Drag and Drop Quiz | Cgspicer | 3,837 Kb |
Donald Trump - The New Yorker | Agbales | 2,502 Kb |
Codero Sitemap | S1m0ne | 28,169 Kb |
Resizable SASS Icons | Marianarlt | 7,611 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
Testing Portfolio Page | Sideshowli | 3,395 Kb |
CSS Patterns | Alyda | 3,953 Kb |
Cant get enough icecream in pure css3 | Melawire | 4,322 Kb |
Smoke Shader - Frame Buffer | Omarshe7ta | 2,672 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!