From a3a12d47d3e3ef8adaff79d54f0b3abc0371b5ec Mon Sep 17 00:00:00 2001 From: Aziz Kosber Date: Tue, 30 Jan 2018 04:44:12 +0000 Subject: [PATCH 1/2] Done. --- index.js | 6 ++---- other_file.js | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 8151607..e1b5ca3 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,6 @@ -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..c68de37 100644 --- a/other_file.js +++ b/other_file.js @@ -1 +1,2 @@ -console.log(name) +var index = require("./index.js") +console.log(index.name) From 4744a84fdb3637738b4058ef7b2dc35ea99b0cf8 Mon Sep 17 00:00:00 2001 From: Aziz Kosber Date: Tue, 30 Jan 2018 21:41:15 +0000 Subject: [PATCH 2/2] Done. --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index e1b5ca3..32763c9 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,8 @@ var name = "Susan" var height = 70 + + // Don't worry about this module.exports = { name, height }