File tree Expand file tree Collapse file tree 6 files changed +43
-46
lines changed Expand file tree Collapse file tree 6 files changed +43
-46
lines changed Original file line number Diff line number Diff line change 55 < title > Happy Birthday</ title >
66 </ head >
77 < body >
8- </ body >
98 < script >
109 var name = "Joe" ;
1110 var i = 0 ;
Original file line number Diff line number Diff line change 11<!doctype html>
22< html >
33< head >
4- < meta charset ="utf-8 ">
5- < title > Just a Generic Page</ title >
6- < script >
7- setTimeout ( wakeUpUser , 5000 ) ;
8- function wakeUpUser ( ) {
9- alert ( "Are you going to stare at this boring page forever?" ) ;
10- }
11- </ script >
4+ < meta charset ="utf-8 ">
5+ < title > Just a Generic Page</ title >
6+ < script >
7+ setTimeout ( wakeUpUser , 5000 ) ;
8+ function wakeUpUser ( ) {
9+ alert ( "Are you going to stare at this boring page forever?" ) ;
10+ }
11+ </ script >
1212</ head >
1313< body >
14- < h1 > Just a generic heading</ h1 >
15- < p > Not a lot to read about here. I'm just an obligatory paragraph living
16- in an example in a JavaScript book. I'm looking for something to make my
17- life more exciting.</ p >
14+ < h1 > Just a generic heading</ h1 >
15+ < p > Not a lot to read about here. I'm just an obligatory paragraph living
16+ in an example in a JavaScript book. I'm looking for something to make my
17+ life more exciting.</ p >
1818</ body >
1919</ html >
2020
Original file line number Diff line number Diff line change 55 < title > Howdy</ title >
66 </ head >
77 < body >
8- </ body >
98 < script >
10- message = "Howdy" + " " + "partner" ;
11- console . log ( message ) ;
9+ message = "Howdy" + " " + "partner" ;
10+ console . log ( message ) ;
1211 </ script >
1312</ body >
1413</ html >
Original file line number Diff line number Diff line change 55 < title > Icecream!</ title >
66 </ head >
77 < body >
8- </ body >
98 < script src ="code.js "> </ script >
109<!--
1110 <script>
Original file line number Diff line number Diff line change 11<!doctype html>
22< html >
33< head >
4- < meta charset ="utf-8 ">
5- < title > My First JavaScript</ title >
4+ < meta charset ="utf-8 ">
5+ < title > My First JavaScript</ title >
66</ head >
77< body >
8- < script >
9- var word = "bottles" ;
10- var count = 99 ;
11- while ( count > 0 ) {
12- console . log ( count + " " + word + " of beer on the wall" ) ;
13- console . log ( count + " " + word + " of beer," ) ;
14- console . log ( "Take one down, pass it around," ) ;
15- count = count - 1 ;
16- if ( count > 0 ) {
17- console . log ( count + " " + word + " of beer on the wall." ) ;
18- } else {
19- console . log ( "No more " + word + " of beer on the wall." ) ;
20- }
21- }
8+ < script >
9+ var word = "bottles" ;
10+ var count = 99 ;
11+ while ( count > 0 ) {
12+ console . log ( count + " " + word + " of beer on the wall" ) ;
13+ console . log ( count + " " + word + " of beer," ) ;
14+ console . log ( "Take one down, pass it around," ) ;
15+ count = count - 1 ;
16+ if ( count > 0 ) {
17+ console . log ( count + " " + word + " of beer on the wall." ) ;
18+ } else {
19+ console . log ( "No more " + word + " of beer on the wall." ) ;
20+ }
21+ }
2222
23- </ script >
23+ </ script >
2424</ body >
2525</ html >
2626
Original file line number Diff line number Diff line change 11<!doctype html>
22< html >
33< head >
4- < meta charset ="utf-8 ">
5- < title > For Kids Only</ title >
6- < script >
7- var age = 25 ;
8- var name = "Owen" ;
9- if ( age > 14 ) {
10- alert ( "Sorry this page is for kids only!" ) ;
11- } else {
12- alert ( "Welcome " + name + "!" ) ;
13- }
14- </ script >
4+ < meta charset ="utf-8 ">
5+ < title > For Kids Only</ title >
6+ < script >
7+ var age = 25 ;
8+ var name = "Owen" ;
9+ if ( age > 14 ) {
10+ alert ( "Sorry this page is for kids only!" ) ;
11+ } else {
12+ alert ( "Welcome " + name + "!" ) ;
13+ }
14+ </ script >
1515</ head >
1616< body >
17- < h1 > This page is for kids only!</ h1 >
17+ < h1 > This page is for kids only!</ h1 >
1818</ body >
1919</ html >
2020
You can’t perform that action at this time.
0 commit comments