From a420adfdda305aae3531fa83feb96c611f294754 Mon Sep 17 00:00:00 2001 From: deboraelisa Date: Sun, 1 Jan 2017 11:39:26 -0500 Subject: [PATCH 1/2] Create code.js --- code.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 code.js diff --git a/code.js b/code.js new file mode 100644 index 0000000..32f7986 --- /dev/null +++ b/code.js @@ -0,0 +1,13 @@ +var word = "bottles"; +var count = 99; +while (count > 0) { + console.log(count + " " + word + " of beer on the wall"); + console.log(count + " " + word + " of beer,"); + console.log("Take one down, pass it around,"); + count = count - 1; + if (count > 0) { + console.log(count + " " + word + " of beer on the wall."); + } else { + console.log("No more " + word + " of beer on the wall."); + } +} From aa56cd3f54770b271415ac7ad1e0ec0d874999ec Mon Sep 17 00:00:00 2001 From: deboraelisa Date: Sun, 1 Jan 2017 11:45:03 -0500 Subject: [PATCH 2/2] Create index2.html --- index2.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 index2.html diff --git a/index2.html b/index2.html new file mode 100644 index 0000000..6f5e559 --- /dev/null +++ b/index2.html @@ -0,0 +1,11 @@ + + + + +My First JavaScript + + + + +