From 53522643e8b9832553f0d14fd374a50fac8c84b4 Mon Sep 17 00:00:00 2001 From: sanober riaz Date: Sun, 14 Jan 2018 04:14:37 +0000 Subject: [PATCH] Done. --- index.js | 5 ++--- other_file.js | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 8151607..a8591b9 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,7 @@ -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..14b8a94 100644 --- a/other_file.js +++ b/other_file.js @@ -1 +1,3 @@ -console.log(name) +var index = require("./index.js"); + +console.log(index.name);