Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion 1 chapter1/birthday.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<title>Happy Birthday</title>
</head>
<body>
</body>
<script>
var name = "Joe";
var i = 0;
Expand Down
24 changes: 12 additions & 12 deletions 24 chapter1/generic.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Just a Generic Page</title>
<script>
setTimeout(wakeUpUser, 5000);
function wakeUpUser() {
alert("Are you going to stare at this boring page forever?");
}
</script>
<meta charset="utf-8">
<title>Just a Generic Page</title>
<script>
setTimeout(wakeUpUser, 5000);
function wakeUpUser() {
alert("Are you going to stare at this boring page forever?");
}
</script>
</head>
<body>
<h1>Just a generic heading</h1>
<p>Not a lot to read about here. I'm just an obligatory paragraph living
in an example in a JavaScript book. I'm looking for something to make my
life more exciting.</p>
<h1>Just a generic heading</h1>
<p>Not a lot to read about here. I'm just an obligatory paragraph living
in an example in a JavaScript book. I'm looking for something to make my
life more exciting.</p>
</body>
</html>

5 changes: 2 additions & 3 deletions 5 chapter1/howdy.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
<title>Howdy</title>
</head>
<body>
</body>
<script>
message = "Howdy" + " " + "partner";
console.log(message);
message = "Howdy" + " " + "partner";
console.log(message);
</script>
</body>
</html>
1 change: 0 additions & 1 deletion 1 chapter1/icecream.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<title>Icecream!</title>
</head>
<body>
</body>
<script src="code.js"></script>
<!--
<script>
Expand Down
34 changes: 17 additions & 17 deletions 34 chapter1/index.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>My First JavaScript</title>
<meta charset="utf-8">
<title>My First JavaScript</title>
</head>
<body>
<script>
var word = "bottles";
var count = 99;
while (count > 0) {
console.log(count + " " + word + " of beer on the wall");
console.log(count + " " + word + " of beer,");
console.log("Take one down, pass it around,");
count = count - 1;
if (count > 0) {
console.log(count + " " + word + " of beer on the wall.");
} else {
console.log("No more " + word + " of beer on the wall.");
}
}
<script>
var word = "bottles";
var count = 99;
while (count > 0) {
console.log(count + " " + word + " of beer on the wall");
console.log(count + " " + word + " of beer,");
console.log("Take one down, pass it around,");
count = count - 1;
if (count > 0) {
console.log(count + " " + word + " of beer on the wall.");
} else {
console.log("No more " + word + " of beer on the wall.");
}
}

</script>
</script>
</body>
</html>

24 changes: 12 additions & 12 deletions 24 chapter1/kids.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>For Kids Only</title>
<script>
var age = 25;
var name = "Owen";
if (age > 14) {
alert("Sorry this page is for kids only!");
} else {
alert("Welcome " + name + "!");
}
</script>
<meta charset="utf-8">
<title>For Kids Only</title>
<script>
var age = 25;
var name = "Owen";
if (age > 14) {
alert("Sorry this page is for kids only!");
} else {
alert("Welcome " + name + "!");
}
</script>
</head>
<body>
<h1>This page is for kids only!</h1>
<h1>This page is for kids only!</h1>
</body>
</html>

Morty Proxy This is a proxified and sanitized view of the page, visit original site.