From fbf9c99ed7d1f011028ae2e68e3262b7ceb8b278 Mon Sep 17 00:00:00 2001 From: Chibuike Iheanacho Date: Wed, 14 Feb 2018 16:08:09 +0000 Subject: [PATCH 1/4] Done. --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8151607..e408a18 100644 --- a/index.js +++ b/index.js @@ -5,4 +5,7 @@ var height = "74" // Don't worry about this module.exports = { name, height } - +if (name === "Susan"){ + console.log("The name is correct"); + +} From 8de092c842f612aad6f68133d3055b8bb757aa56 Mon Sep 17 00:00:00 2001 From: Chibuike Iheanacho Date: Wed, 14 Feb 2018 16:11:55 +0000 Subject: [PATCH 2/4] Done. --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index e408a18..5398466 100644 --- a/index.js +++ b/index.js @@ -8,4 +8,7 @@ module.exports = { name, height if (name === "Susan"){ console.log("The name is correct"); +}else { + + console.;og("Expected thename to be Susan") } From 217df2406014c0e0a8e623abad96b55e1fca19ec Mon Sep 17 00:00:00 2001 From: Chibuike Iheanacho Date: Wed, 14 Feb 2018 16:13:40 +0000 Subject: [PATCH 3/4] Done. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5398466..dd49242 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -var name = "Joe" +var name = "Susan" var height = "74" @@ -10,5 +10,5 @@ if (name === "Susan"){ }else { - console.;og("Expected thename to be Susan") + console.log("Expected thename to be Susan") } From c1845e23f4440ed424d8c9b696d45261119a831e Mon Sep 17 00:00:00 2001 From: Chibuike Iheanacho Date: Wed, 14 Feb 2018 16:20:30 +0000 Subject: [PATCH 4/4] Done. --- other_file.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/other_file.js b/other_file.js index 3759417..d0488c5 100644 --- a/other_file.js +++ b/other_file.js @@ -1 +1,3 @@ -console.log(name) +var index = require("./index.js") + +console.log(index.name) \ No newline at end of file