From 2f2041da203fa8f9583d53407dd0537d6187bfc3 Mon Sep 17 00:00:00 2001 From: fallenangel32 Date: Wed, 7 Oct 2015 21:53:41 +0000 Subject: [PATCH] finish first lesson --- solutions/01_helloWorld/helloWorld.js | 1 + solutions/01_helloWorld/index.html | 0 solutions/01_hello_html/hello.html | 1 - solutions/02_helloName/helloName.js | 2 ++ solutions/02_helloName/index.html | 10 ++++++++++ solutions/03_age/age.js | 3 +++ solutions/03_age/index.html | 0 solutions/04_hello3ages/hello3ages.js | 0 solutions/04_hello3ages/imdex.html | 9 +++++++++ solutions/09a_Length/09a.js | 2 ++ solutions/09a_Length/index.html | 10 ++++++++++ 11 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 solutions/01_helloWorld/helloWorld.js create mode 100644 solutions/01_helloWorld/index.html delete mode 100644 solutions/01_hello_html/hello.html create mode 100644 solutions/02_helloName/helloName.js create mode 100644 solutions/02_helloName/index.html create mode 100644 solutions/03_age/age.js create mode 100644 solutions/03_age/index.html create mode 100644 solutions/04_hello3ages/hello3ages.js create mode 100644 solutions/04_hello3ages/imdex.html create mode 100644 solutions/09a_Length/09a.js create mode 100644 solutions/09a_Length/index.html diff --git a/solutions/01_helloWorld/helloWorld.js b/solutions/01_helloWorld/helloWorld.js new file mode 100644 index 0000000..7df7d57 --- /dev/null +++ b/solutions/01_helloWorld/helloWorld.js @@ -0,0 +1 @@ +console.log("Hello World"); \ No newline at end of file diff --git a/solutions/01_helloWorld/index.html b/solutions/01_helloWorld/index.html new file mode 100644 index 0000000..e69de29 diff --git a/solutions/01_hello_html/hello.html b/solutions/01_hello_html/hello.html deleted file mode 100644 index d975ef8..0000000 --- a/solutions/01_hello_html/hello.html +++ /dev/null @@ -1 +0,0 @@ -This is just an example! Hehe. \ No newline at end of file diff --git a/solutions/02_helloName/helloName.js b/solutions/02_helloName/helloName.js new file mode 100644 index 0000000..9275414 --- /dev/null +++ b/solutions/02_helloName/helloName.js @@ -0,0 +1,2 @@ +var name = prompt ("What's your name?"); +alert("Hello There " + name); \ No newline at end of file diff --git a/solutions/02_helloName/index.html b/solutions/02_helloName/index.html new file mode 100644 index 0000000..5605e49 --- /dev/null +++ b/solutions/02_helloName/index.html @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/solutions/03_age/age.js b/solutions/03_age/age.js new file mode 100644 index 0000000..23230b9 --- /dev/null +++ b/solutions/03_age/age.js @@ -0,0 +1,3 @@ +var name = prompt ("What's your name?"); +var age = prompt("What is your age?"); +alert("Your name is" + name + "Your age is" + age); \ No newline at end of file diff --git a/solutions/03_age/index.html b/solutions/03_age/index.html new file mode 100644 index 0000000..e69de29 diff --git a/solutions/04_hello3ages/hello3ages.js b/solutions/04_hello3ages/hello3ages.js new file mode 100644 index 0000000..e69de29 diff --git a/solutions/04_hello3ages/imdex.html b/solutions/04_hello3ages/imdex.html new file mode 100644 index 0000000..7efb89b --- /dev/null +++ b/solutions/04_hello3ages/imdex.html @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/solutions/09a_Length/09a.js b/solutions/09a_Length/09a.js new file mode 100644 index 0000000..4a78f39 --- /dev/null +++ b/solutions/09a_Length/09a.js @@ -0,0 +1,2 @@ +var myString = "Thid is just a string" +console.log(myString.length); \ 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..6de01be --- /dev/null +++ b/solutions/09a_Length/index.html @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file