From b3abd0784916604c8c6c091f23d112b5ee2df823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fern=C3=A1n=20Gonz=C3=A1lez=20Domingo?= Date: Sun, 14 Jan 2018 00:22:22 +0000 Subject: [PATCH] Done. --- index.js | 14 ++++++-------- other_file.js | 3 ++- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index 8151607..982d513 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..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)