From f063f6061be4d712af868a44a9886fdbd410c576 Mon Sep 17 00:00:00 2001 From: xxswagboykxx Date: Wed, 7 Oct 2015 21:56:23 +0000 Subject: [PATCH] This is the work i did in the first class --- solutions/01_hello_html/02_name/index.html | 10 ++++++++++ solutions/01_hello_html/02_name/name.js | 2 ++ solutions/01_hello_html/03_age/age.js | 3 +++ solutions/01_hello_html/03_age/index.html | 10 ++++++++++ solutions/09a_length/index.html | 10 ++++++++++ solutions/09a_length/length.js | 5 +++++ 6 files changed, 40 insertions(+) create mode 100644 solutions/01_hello_html/02_name/index.html create mode 100644 solutions/01_hello_html/02_name/name.js create mode 100644 solutions/01_hello_html/03_age/age.js create mode 100644 solutions/01_hello_html/03_age/index.html create mode 100644 solutions/09a_length/index.html create mode 100644 solutions/09a_length/length.js diff --git a/solutions/01_hello_html/02_name/index.html b/solutions/01_hello_html/02_name/index.html new file mode 100644 index 0000000..9cec973 --- /dev/null +++ b/solutions/01_hello_html/02_name/index.html @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/solutions/01_hello_html/02_name/name.js b/solutions/01_hello_html/02_name/name.js new file mode 100644 index 0000000..334d66b --- /dev/null +++ b/solutions/01_hello_html/02_name/name.js @@ -0,0 +1,2 @@ +var name = prompt("Hola what's your name?") +alert("Hola "+ name); \ No newline at end of file diff --git a/solutions/01_hello_html/03_age/age.js b/solutions/01_hello_html/03_age/age.js new file mode 100644 index 0000000..47db851 --- /dev/null +++ b/solutions/01_hello_html/03_age/age.js @@ -0,0 +1,3 @@ +var age = prompt("How old are you ?"); +var name = prompt("What's your name?"); +alert(age); \ No newline at end of file diff --git a/solutions/01_hello_html/03_age/index.html b/solutions/01_hello_html/03_age/index.html new file mode 100644 index 0000000..2dfef0d --- /dev/null +++ b/solutions/01_hello_html/03_age/index.html @@ -0,0 +1,10 @@ + + + + + + + + + + \ 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..776d543 --- /dev/null +++ b/solutions/09a_length/index.html @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/solutions/09a_length/length.js b/solutions/09a_length/length.js new file mode 100644 index 0000000..7439084 --- /dev/null +++ b/solutions/09a_length/length.js @@ -0,0 +1,5 @@ + + +var myString = "Barns are red"; + +console.log(myString.length); \ No newline at end of file