From 0815c07db0ddf9c79d747d3c2edf28c6463d0611 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 28 Feb 2018 02:42:00 +0000 Subject: [PATCH] Done. --- index.js | 5 ++--- other_file.js | 5 ++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 81516079f2..bf8d000084 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,5 @@ -var name = "Joe" -var height = "74" - +var name = "Susan" +var height = parseInt("70") // Don't worry about this module.exports = { name, height diff --git a/other_file.js b/other_file.js index 3759417422..4bdc185a3d 100644 --- a/other_file.js +++ b/other_file.js @@ -1 +1,4 @@ -console.log(name) +var index = require("./index.js") + +console.log(index.name) +