From eb33346655f94f173e42e2675600739ca6937640 Mon Sep 17 00:00:00 2001 From: Shaun Tung Date: Fri, 19 Jan 2018 01:56:16 +0000 Subject: [PATCH] Done. --- index.js | 14 ++++++-------- other_file.js | 4 +++- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index 8151607..5488d41 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,6 @@ -var name = "Joe" -var height = "74" - - -// Don't worry about this -module.exports = { name, height -} - +var name = "Susan" +var height = 70 + +// Don't worry about this +module.exports = { name, height +} \ No newline at end of file diff --git a/other_file.js b/other_file.js index 3759417..13a96a7 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