From bbba0561768c647efc160ceb2a05fc08a3f885e2 Mon Sep 17 00:00:00 2001 From: Erik Harris Date: Wed, 16 Feb 2022 11:04:42 -0500 Subject: [PATCH 1/5] Rename 237 Will field names as strings lead to more bugs?.js to 237 Will field names as strings lead to more bugs.js --- ....js => 237 Will field names as strings lead to more bugs.js} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename JavaScript/Chapter 10/{237 Will field names as strings lead to more bugs?.js => 237 Will field names as strings lead to more bugs.js} (99%) diff --git a/JavaScript/Chapter 10/237 Will field names as strings lead to more bugs?.js b/JavaScript/Chapter 10/237 Will field names as strings lead to more bugs.js similarity index 99% rename from JavaScript/Chapter 10/237 Will field names as strings lead to more bugs?.js rename to JavaScript/Chapter 10/237 Will field names as strings lead to more bugs.js index 9fc5fbb..e4c0562 100644 --- a/JavaScript/Chapter 10/237 Will field names as strings lead to more bugs?.js +++ b/JavaScript/Chapter 10/237 Will field names as strings lead to more bugs.js @@ -13,4 +13,4 @@ function objectSet(object, key, value) { var copy = Object.assign({}, object); copy[key] = value; return copy; -} \ No newline at end of file +} From fdf06ebcd0b821b9ee20157d2cc26f72649862ec Mon Sep 17 00:00:00 2001 From: Erik Harris Date: Wed, 16 Feb 2022 11:05:07 -0500 Subject: [PATCH 2/5] Rename 238 Will first-class fields make the API hard to change?.js to 238 Will first-class fields make the API hard to change.js --- ... 238 Will first-class fields make the API hard to change.js} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename JavaScript/Chapter 10/{238 Will first-class fields make the API hard to change?.js => 238 Will first-class fields make the API hard to change.js} (99%) diff --git a/JavaScript/Chapter 10/238 Will first-class fields make the API hard to change?.js b/JavaScript/Chapter 10/238 Will first-class fields make the API hard to change.js similarity index 99% rename from JavaScript/Chapter 10/238 Will first-class fields make the API hard to change?.js rename to JavaScript/Chapter 10/238 Will first-class fields make the API hard to change.js index e379486..8d86320 100644 --- a/JavaScript/Chapter 10/238 Will first-class fields make the API hard to change?.js +++ b/JavaScript/Chapter 10/238 Will first-class fields make the API hard to change.js @@ -10,4 +10,4 @@ function setFieldByName(cart, name, field, value) { var newItem = objectSet(item, field, value); var newCart = objectSet(cart, name, newItem); return newCart; -} \ No newline at end of file +} From 68fd025179155f5ea5e27492dacae635c8a81573 Mon Sep 17 00:00:00 2001 From: Erik Harris Date: Wed, 16 Feb 2022 11:05:30 -0500 Subject: [PATCH 3/5] Rename 258 What is this syntax?.js to 258 What is this syntax.js --- .../{258 What is this syntax?.js => 258 What is this syntax.js} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename JavaScript/Chapter 10/{258 What is this syntax?.js => 258 What is this syntax.js} (87%) diff --git a/JavaScript/Chapter 10/258 What is this syntax?.js b/JavaScript/Chapter 10/258 What is this syntax.js similarity index 87% rename from JavaScript/Chapter 10/258 What is this syntax?.js rename to JavaScript/Chapter 10/258 What is this syntax.js index 4311937..1f634f4 100644 --- a/JavaScript/Chapter 10/258 What is this syntax?.js +++ b/JavaScript/Chapter 10/258 What is this syntax.js @@ -19,4 +19,4 @@ function someFunction() { /// 3. Defined inline -withLogging(function() { saveUserData(user); }); \ No newline at end of file +withLogging(function() { saveUserData(user); }); From 0a4ab631b41970128cfdd5cd2162cb5c1c7f2f11 Mon Sep 17 00:00:00 2001 From: Erik Harris Date: Wed, 16 Feb 2022 11:05:54 -0500 Subject: [PATCH 4/5] Rename 259 Why are we wrapping the code in a function?.js to 259 Why are we wrapping the code in a function.js --- ...on?.js => 259 Why are we wrapping the code in a function.js} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename JavaScript/Chapter 10/{259 Why are we wrapping the code in a function?.js => 259 Why are we wrapping the code in a function.js} (99%) diff --git a/JavaScript/Chapter 10/259 Why are we wrapping the code in a function?.js b/JavaScript/Chapter 10/259 Why are we wrapping the code in a function.js similarity index 99% rename from JavaScript/Chapter 10/259 Why are we wrapping the code in a function?.js rename to JavaScript/Chapter 10/259 Why are we wrapping the code in a function.js index c1a2765..c8a2b62 100644 --- a/JavaScript/Chapter 10/259 Why are we wrapping the code in a function?.js +++ b/JavaScript/Chapter 10/259 Why are we wrapping the code in a function.js @@ -52,4 +52,4 @@ function withLogging(f) { } catch (error) { logToSnapErrors(error); } -} \ No newline at end of file +} From d0ec30988c0b9dfb52eadfc03e21de635304fa98 Mon Sep 17 00:00:00 2001 From: Erik Harris Date: Wed, 16 Feb 2022 11:06:24 -0500 Subject: [PATCH 5/5] Rename 139 What gets copied?.js to 139 What gets copied.js --- .../{139 What gets copied?.js => 139 What gets copied.js} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename JavaScript/Chapter 6/{139 What gets copied?.js => 139 What gets copied.js} (99%) diff --git a/JavaScript/Chapter 6/139 What gets copied?.js b/JavaScript/Chapter 6/139 What gets copied.js similarity index 99% rename from JavaScript/Chapter 6/139 What gets copied?.js rename to JavaScript/Chapter 6/139 What gets copied.js index 3a02af7..1f44b8e 100644 --- a/JavaScript/Chapter 6/139 What gets copied?.js +++ b/JavaScript/Chapter 6/139 What gets copied.js @@ -13,4 +13,4 @@ function setPrice(item, new_price) { var item_copy = Object.assign({}, item); item_copy.price = new_price; return item_copy; -} \ No newline at end of file +}