-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz.html
49 lines (47 loc) · 1.29 KB
/
quiz.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<title>Quiz</title>
<link href="common/quiz.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="quiz">
</div>
<button id="submit">Submit</button>
<div id="results">
</div>
<script src="common/quizGenerator.js"></script>
<script>
const myQuestions = [
{
question: "Who invented JavaScript?",
choices: {
a: "Douglas Crockford",
b: "Sheryl Sandberg",
c: "Brendan Eich"
},
answer: "c"
},
{
question: "Which one of these is a JavaScript package manager?",
choices: {
a: "Node.js",
b: "TypeScript",
c: "npm"
},
answer: "c"
},
{
question: 'Which tool can you use to ensure code quality?',
choices: {
a: "Angular",
b: "jQuery",
c: "RequireJS",
d: "ESLint"
},
answer: "d"
}];
generateQuiz(myQuestions, document);
</script>
</body>
</html>