From 1270178fe790c97b8b208a797fff44058cf945b1 Mon Sep 17 00:00:00 2001 From: Bergmeister Date: Thu, 7 Apr 2022 09:58:30 -0400 Subject: [PATCH 1/7] added ch00 --- ch00/test.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ch00/test.js diff --git a/ch00/test.js b/ch00/test.js new file mode 100644 index 0000000..e6e9a4f --- /dev/null +++ b/ch00/test.js @@ -0,0 +1,3 @@ +console.log("Hello World") +console.log("Bye there") +console.log("Hi there") \ No newline at end of file From 6aeba6de82f8bbc62b01331edf9e904246c48830 Mon Sep 17 00:00:00 2001 From: Bergmeister Date: Thu, 7 Apr 2022 10:05:09 -0400 Subject: [PATCH 2/7] new commit --- ch00/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ch00/test.js b/ch00/test.js index e6e9a4f..dce0443 100644 --- a/ch00/test.js +++ b/ch00/test.js @@ -1,3 +1,4 @@ console.log("Hello World") console.log("Bye there") -console.log("Hi there") \ No newline at end of file +console.log("Hi there") +console.log("New Commit") \ No newline at end of file From 71e10857c060b885f59aaf1d7bb42668b24f3ee7 Mon Sep 17 00:00:00 2001 From: Bergmeister Date: Thu, 7 Apr 2022 10:32:18 -0400 Subject: [PATCH 3/7] New Commit --- ch00/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ch00/test.js b/ch00/test.js index dce0443..d9242e3 100644 --- a/ch00/test.js +++ b/ch00/test.js @@ -1,4 +1,5 @@ console.log("Hello World") console.log("Bye there") console.log("Hi there") -console.log("New Commit") \ No newline at end of file +console.log("New Commit") +console.log("\u{1F600}"); \ No newline at end of file From d51d173f2a3a511878cb996f463d1ab800632cbe Mon Sep 17 00:00:00 2001 From: Bergmeister Date: Thu, 7 Apr 2022 10:33:54 -0400 Subject: [PATCH 4/7] javaScript line ommision --- ch00/test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ch00/test.js b/ch00/test.js index d9242e3..c32f59d 100644 --- a/ch00/test.js +++ b/ch00/test.js @@ -1,5 +1,5 @@ -console.log("Hello World") -console.log("Bye there") -console.log("Hi there") -console.log("New Commit") -console.log("\u{1F600}"); \ No newline at end of file +let a +a += +3 +console.log(a) \ No newline at end of file From 12583b24a5c210177ee551e9575c65efdd35c035 Mon Sep 17 00:00:00 2001 From: Ankur Bansal Date: Fri, 8 Apr 2022 19:38:08 -0400 Subject: [PATCH 5/7] New commit --- ch00/test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ch00/test.js b/ch00/test.js index c32f59d..ed7bb57 100644 --- a/ch00/test.js +++ b/ch00/test.js @@ -1,5 +1,4 @@ -let a -a -= -3 +let o = { x: 1, y: 2, z: 3 }; +let a = [], i = 0; +for (a[i++] in o) /* empty */; console.log(a) \ No newline at end of file From d5732aa4ff64d5392d479a7fe35a01e8ef99b941 Mon Sep 17 00:00:00 2001 From: Ankur Bansal Date: Fri, 8 Apr 2022 21:31:15 -0400 Subject: [PATCH 6/7] new commit --- ch00/test.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/ch00/test.js b/ch00/test.js index ed7bb57..9e31f41 100644 --- a/ch00/test.js +++ b/ch00/test.js @@ -1,4 +1,13 @@ -let o = { x: 1, y: 2, z: 3 }; -let a = [], i = 0; -for (a[i++] in o) /* empty */; -console.log(a) \ No newline at end of file +function f() { + return 0 +} +console.log(f3()) +function f1() { + return 1 +} +function f2() { + return 2 +} +function f3() { + return 3 +} \ No newline at end of file From 06d7f3ff3df541b193cc7a1f4d9dad824c2e892b Mon Sep 17 00:00:00 2001 From: Ankur Bansal Date: Sat, 9 Apr 2022 17:19:26 -0400 Subject: [PATCH 7/7] New Commit --- ch00/test.js | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/ch00/test.js b/ch00/test.js index 9e31f41..ef7d746 100644 --- a/ch00/test.js +++ b/ch00/test.js @@ -1,13 +1,6 @@ -function f() { - return 0 -} -console.log(f3()) -function f1() { - return 1 -} -function f2() { - return 2 -} -function f3() { - return 3 -} \ No newline at end of file +let uniqueInteger = (function () { // Define and invoke + let counter = 0; // Private state of function below + return function() { return counter++; }; +}()); +console.log(uniqueInteger()) // => 0 +console.log(uniqueInteger()) // => 1 \ No newline at end of file