-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (107 loc) · 2.45 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>quiz</title>
</head>
<body>
<script type="text/javascript" charset="utf-8">
quiz1();
function quiz1() {
alert("Kuis Matematika Easy, Gunakan Angka Untuk Menjawab");
let quiz1 = window.prompt("1 + 1 = ?");
if (quiz1 == 2) {
alert("✨ Benar");
} else{
alert("SALAH!!");
}
}
quiz2();
function quiz2() {
let quiz1 = window.prompt("11 + 33 = ?");
if (quiz1 == 44) {
alert("✨ Benar");
} else{
alert("SALAH!!");
}
}
quiz3();
function quiz3() {
let quiz1 = window.prompt("5 x 10 = ?");
if (quiz1 == 50) {
alert("✨ Benar");
} else{
alert("SALAH!!");
}
}
quiz4();
function quiz4() {
let quiz1 = window.prompt(" 1 + 1 x 0 = ?");
if (quiz1 == 1) {
alert("✨ Benar");
} else{
alert("SALAH!!");
}
}
quiz5();
function quiz5() {
let quiz1 = window.prompt(" 55 + 33 = ?");
if (quiz1 == 88) {
alert("✨ Benar");
} else{
alert("SALAH!!");
}
}
quiz6();
function quiz6() {
let quiz1 = window.prompt(" 17 + 63 = ?");
if (quiz1 == 80) {
alert("✨ Benar");
} else{
alert("SALAH!!");
}
}
quiz7();
function quiz7() {
let quiz1 = window.prompt(" 39 + 64 = ?");
if (quiz1 == 103) {
alert("✨ Benar");
} else{
alert("SALAH!!");
}
}
quiz8();
function quiz8() {
let quiz1 = window.prompt(" 7 x 7 = ?");
if (quiz1 == 49) {
alert("✨ Benar");
} else{
alert("SALAH!!");
}
}
quiz9();
function quiz9() {
let quiz1 = window.prompt(" 102 x 2= ?");
if (quiz1 == 204) {
alert("✨ Benar");
} else{
alert("SALAH!!");
}
}
quiz10();
function quiz10() {
let quiz1 = window.prompt(" 77 + 9 x 2 = ?");
if (quiz1 == 95) {
alert("✨ Benar");
return;
} else{
alert("SALAH!!");
return;
}
}
</script>
<h1>Thanks For Playing:)</h1>
<button type="button" onclick="quiz1(), quiz2(), quiz3(), quiz4(), quiz5(), quiz6(), quiz7(), quiz8(), quiz9(), quiz10()">Ulang Kuis</button>
</body>
</html>