From c5865bd2fdf71d568b397e9b8409cc9b163009ba Mon Sep 17 00:00:00 2001 From: Nicholas Frangione Date: Thu, 14 Jan 2021 22:49:35 +0000 Subject: [PATCH] Done. --- js/index.js | 8 +++----- js/other_file.js | 2 ++ js/tests.js | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/js/index.js b/js/index.js index e0e752d548..70813a926d 100644 --- a/js/index.js +++ b/js/index.js @@ -1,7 +1,5 @@ -var name = "Joe" -var height = "74" +var name = "Susan" +var height = parseInt("70") // Don't worry about this -module.exports = { name, height -} - +module.exports = { name, height} \ No newline at end of file diff --git a/js/other_file.js b/js/other_file.js index e69de29bb2..551d349953 100644 --- a/js/other_file.js +++ b/js/other_file.js @@ -0,0 +1,2 @@ +var index = require("./index.js") +console.log(index.name) \ No newline at end of file diff --git a/js/tests.js b/js/tests.js index 8da77d09c9..6102f21d9c 100644 --- a/js/tests.js +++ b/js/tests.js @@ -1,5 +1,6 @@ var index = require("./index.js") + if (index.name === "Susan") { console.log("The name is correct") } else {