From 8294a4f9990215ce10eb43ad5d12edb293f66a24 Mon Sep 17 00:00:00 2001 From: riah123 Date: Wed, 7 Oct 2015 21:50:45 +0000 Subject: [PATCH] finish first lesson --- solutions/09a_length/09a.js | 5 +++++ solutions/09a_length/index.html | 12 ++++++++++++ solutions/HelloName/helloName.html | 10 ++++++++++ solutions/HelloName/helloName.js | 3 +++ solutions/callMonkey/callMonkey.html | 0 solutions/callMonkey/callMonkey.js | 0 solutions/hello3ages/hello3ages.js | 0 solutions/hello3ages/index.html | 0 solutions/helloWorld/helloWorld.html | 0 solutions/helloWorld/helloWorld.js | 1 + 10 files changed, 31 insertions(+) create mode 100644 solutions/09a_length/09a.js create mode 100644 solutions/09a_length/index.html create mode 100644 solutions/HelloName/helloName.html create mode 100644 solutions/HelloName/helloName.js create mode 100644 solutions/callMonkey/callMonkey.html create mode 100644 solutions/callMonkey/callMonkey.js create mode 100644 solutions/hello3ages/hello3ages.js create mode 100644 solutions/hello3ages/index.html create mode 100644 solutions/helloWorld/helloWorld.html create mode 100644 solutions/helloWorld/helloWorld.js diff --git a/solutions/09a_length/09a.js b/solutions/09a_length/09a.js new file mode 100644 index 0000000..46b9c96 --- /dev/null +++ b/solutions/09a_length/09a.js @@ -0,0 +1,5 @@ + + +var = "This 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..69c142e --- /dev/null +++ b/solutions/09a_length/index.html @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/solutions/HelloName/helloName.html b/solutions/HelloName/helloName.html new file mode 100644 index 0000000..7c13d14 --- /dev/null +++ b/solutions/HelloName/helloName.html @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/solutions/HelloName/helloName.js b/solutions/HelloName/helloName.js new file mode 100644 index 0000000..2919750 --- /dev/null +++ b/solutions/HelloName/helloName.js @@ -0,0 +1,3 @@ +var name = prompt("What's your name?"); +var age = prompt("What's your age?"); +alert("Your name is " + name + "And your age is" + age); \ No newline at end of file diff --git a/solutions/callMonkey/callMonkey.html b/solutions/callMonkey/callMonkey.html new file mode 100644 index 0000000..e69de29 diff --git a/solutions/callMonkey/callMonkey.js b/solutions/callMonkey/callMonkey.js new file mode 100644 index 0000000..e69de29 diff --git a/solutions/hello3ages/hello3ages.js b/solutions/hello3ages/hello3ages.js new file mode 100644 index 0000000..e69de29 diff --git a/solutions/hello3ages/index.html b/solutions/hello3ages/index.html new file mode 100644 index 0000000..e69de29 diff --git a/solutions/helloWorld/helloWorld.html b/solutions/helloWorld/helloWorld.html new file mode 100644 index 0000000..e69de29 diff --git a/solutions/helloWorld/helloWorld.js b/solutions/helloWorld/helloWorld.js new file mode 100644 index 0000000..7df7d57 --- /dev/null +++ b/solutions/helloWorld/helloWorld.js @@ -0,0 +1 @@ +console.log("Hello World"); \ No newline at end of file