From 020f7c9ef8893254cf9c0a4b7e60f44a4b524a51 Mon Sep 17 00:00:00 2001 From: Chukwuemelie Oguchi Date: Wed, 24 Jan 2018 09:32:36 +0000 Subject: [PATCH] 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..65f6823 100644 --- a/other_file.js +++ b/other_file.js @@ -1 +1,2 @@ -console.log(name) +var index = require('./index.js') +console.log(index.name)