-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathif.html
More file actions
76 lines (60 loc) · 1.54 KB
/
if.html
File metadata and controls
76 lines (60 loc) · 1.54 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
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
<!DOCTYPE html>
<html>
<head>
<title>quiz</title>
<script>
/*
var favoriteFood = prompt("What's your favorite food?");
if(favoriteFood !== "parmesan") {
console.log("You have bad taste.");
}
*/
/*var age = prompt("What is your age?");
if(age >= 21) {
console.log("You are old enough to drink in most states.");
}*/
/*
var favColor = prompt("What is your favorite color?");
if(favColor === "red") {
console.log("Roses are red, etc etc");
} else if (favColor === "blue") {
console.log("Violets are blue, etc etc");
} else if (favColor === "green") {
console.log("I've got nothing to say.");
} else {
console.log("What's the next line?");
}*/
/*
if you are from pennsylvania
then ask what city you were from?
if you are from pittsburgh,
then assert awesomeness
else ask if they're from philly
if they're from philly
ignore them.
otherwise
say you don't know where that is
if you're not from pennsylvania
ask where they're from
regardless of where they're from,
pretend like you don't know where that is
*/
/*
=== are these things equal
!== i'm assuming these aren't equal
> greater than
< less than
>= greater than or equal to
<= less than or equal to
*/
</script>
<style>
body {
background-color:gainsboro;
}
</style>
</head>
<body>
<h1>Remember to look in the console!</h1>
</body>
</html>