From f6ec76353ebbc348e919dfa7c3eb52fc41443090 Mon Sep 17 00:00:00 2001 From: Roscoe Sabale Date: Sun, 14 Jan 2018 04:34:37 +0000 Subject: [PATCH] Done. --- index.js | 5 +++++ other_file.js | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8151607..a7592d9 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,11 @@ var name = "Joe" var height = "74" +if (name === "Susan") { + console.log("The name is correct") +} else { + console.log("Expected the name to be Susan") +} // Don't worry about this module.exports = { name, height diff --git a/other_file.js b/other_file.js index 3759417..441579c 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