master
Tait Hoyem 2 years ago
parent c421adbc9b
commit e1b1c2e5f9

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var chop = 67;
chop--;
document.write(chop);
</script>
</body>
</html>

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var bucky = 24;
bucky += 67;
bucky -= 32;
bucky *= 4;
bucky /= 5;
document.write(bucky);
</script>
</body>
</html>

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var apples = 56;
var hotdogs = 53;
if (apples<=hotdogs) {
document.write("Yay it worked!");
}
</script>
</body>
</html>

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var blue = 587;
var red = 43;
if(){
document.write("I love hotpockets!");
} else {
document.write("I love strawberries!");
}
</script>
</body>
</html>

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var firstName = "bucky";
var lastName = "covington";
if(firstName=="bucky"){
if(lastName=="roberts"){
}else{
document.write("welcome bucky someone!!!");
}
}
</script>
</body>
</html>

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var first = "tommy";
var last = "hanks";
if ( (first=="tommy") || (last=="hanks") ){
document.write("bacon");
}
</script>
</body>
</html>

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var girl = "ashley";
switch(girl){
case "natalie":
document.write("you must liek garden state");
break;
case "ashley":
document.write("oo fan of twilight ey?");
break;
default:
document.write("thisd is the default");
}
</script>
</body>
</html>

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
for(x=5;x<450;x++){
document.write("i love rebecca black <br />");
}
</script>
</body>
</html>

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var x = 1;
while(x<10){
document.write(x + " how do you liek thema pples? <br/>");
x++;
}
</script>
</body>
</html>

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var x = 35;
do{
document.write(x + " alo! <br/>");
}while(x<=20);
</script>
</body>
</html>
Loading…
Cancel
Save