diff --git a/solutions/01_hello_html/hello.html b/solutions/01_hello_html/hello.html index d975ef8..33f8ce2 100644 --- a/solutions/01_hello_html/hello.html +++ b/solutions/01_hello_html/hello.html @@ -1 +1,9 @@ -This is just an example! Hehe. \ No newline at end of file + + + + + + + Hello World + + \ No newline at end of file diff --git a/solutions/02_headBody/index.html b/solutions/02_headBody/index.html new file mode 100644 index 0000000..cd4d6fb --- /dev/null +++ b/solutions/02_headBody/index.html @@ -0,0 +1,5 @@ + + + Hello! + World! + \ No newline at end of file diff --git a/solutions/04_hello3ages/hello3ages.js b/solutions/04_hello3ages/hello3ages.js new file mode 100644 index 0000000..ef46646 --- /dev/null +++ b/solutions/04_hello3ages/hello3ages.js @@ -0,0 +1,8 @@ +var age1 = prompt("How old are you?"); +var name1 = prompt("What is your name?"); +var age2 = prompt("How old are you?"); +var name2 = prompt("What is your name?"); +var age3 = prompt("How old are you?"); +var name3 = prompt("What is your name?"); + +alert(name1 + "-" + age1 + "\n" + name2 + "-" + age2 + "\n" + name3 + "-" + age3); \ No newline at end of file diff --git a/solutions/04_hello3ages/index.html b/solutions/04_hello3ages/index.html new file mode 100644 index 0000000..6224a3f --- /dev/null +++ b/solutions/04_hello3ages/index.html @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/solutions/09a_length/index.html b/solutions/09a_length/index.html new file mode 100644 index 0000000..ef60e9b --- /dev/null +++ b/solutions/09a_length/index.html @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/solutions/09a_length/length.js b/solutions/09a_length/length.js new file mode 100644 index 0000000..583d6b7 --- /dev/null +++ b/solutions/09a_length/length.js @@ -0,0 +1,2 @@ +var myString = "This is just a string"; +console.log(myString.length); diff --git a/solutions/09b_nose/index.html b/solutions/09b_nose/index.html new file mode 100644 index 0000000..a6fe61a --- /dev/null +++ b/solutions/09b_nose/index.html @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/solutions/09b_nose/nose.js b/solutions/09b_nose/nose.js new file mode 100644 index 0000000..ebdb8d0 --- /dev/null +++ b/solutions/09b_nose/nose.js @@ -0,0 +1,3 @@ +var noseString = "I like my new shoes"; +alert(noseString); +alert(noseString.replace("shoes","nose")); \ No newline at end of file