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 {