-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava hw 1.html
More file actions
45 lines (42 loc) · 1.89 KB
/
Copy pathjava hw 1.html
File metadata and controls
45 lines (42 loc) · 1.89 KB
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
<!DOCTYPE html>
<html>
<head>
<title>javascript</title>
<script>
var math = prompt("What is 364/14");
if (math==="26"||math==="twenty-six"||math==="twenty six") {
var loser=alert("only losers are good at math lol");
} else {
var mathsux = confirm("yeah math sucks doesnt it");
}
if (mathsux===true||math===false) {
var who=prompt("you're pretty cool. who do think would win in a fight, Jamshed Barucha(A) or the ghost of Peter Cooper(B)");
if (who==="A"||who==="(A)"||who===""||who==="a") {
var jam=confirm("Do you even believe in ghosts?");
} else {
var test=confirm("You've passed the second test.");
if (test===true||test===false) {
var quiz=prompt("Do you think quizes are stupid?");
if (quiz==="yes"||quiz==="Yes"||quiz==="") {
alert("sorry i'll stop");
} else {
var so=prompt("Glad to hear it. What is your name?");
var who=prompt("what does the name " + "''" + so + "''" + " mean?");
var dumb=confirm("no offense, but that's just stupid. From now on, you will be know as Balthazar the Mighty");
var balthy=prompt("hey Balthaz-.. Can I just call you Balthy?");
if (balthy==="no"||balthy==="nope"||balthy==="No") {
alert("go to hell!");
} else {
prompt("Cool!....uhhhh....I forgot where i was goin with this. oh well at least you got a sweet name out of it");
var balth=("Balthazar, how I will miss you so.")
console. log(balth);}
}
}
}
}
</script>
</head>
<body>
<h2>console?<h2>
</body>
</html>