From d66786b50149dd63755a5d9d3e6896c58bf8398a Mon Sep 17 00:00:00 2001 From: Charlotte Payne Date: Sat, 20 Jan 2018 21:46:28 +0000 Subject: [PATCH] Done. --- index.js | 5 ++--- other_file.js | 4 +++- tests.js | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 8151607..b8c8f13 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,5 @@ -var name = "Joe" -var height = "74" - +var name = "Susan" +var height = "70" // Don't worry about this module.exports = { name, height diff --git a/other_file.js b/other_file.js index 3759417..44ac138 100644 --- a/other_file.js +++ b/other_file.js @@ -1 +1,3 @@ -console.log(name) +var index = require("./index.js") + +console.log(index.name) diff --git a/tests.js b/tests.js index 8da77d0..80e08ff 100644 --- a/tests.js +++ b/tests.js @@ -8,7 +8,7 @@ if (index.name === "Susan") { -if (index.height === 70) { +if (index.height === "70") { console.log("The height is correct") } else { console.log("Expected: 70, Received: "+index.height)