diff --git a/js/index.js b/js/index.js index e0e752d548..e65665fdfc 100644 --- a/js/index.js +++ b/js/index.js @@ -1,7 +1,6 @@ -var name = "Joe" -var height = "74" - -// Don't worry about this -module.exports = { name, height -} - +if (name === "Susan") { + console.log("The name is correct") +} else { + console.log("Expected the name to be Susan") +} + diff --git a/js/other_file.js b/js/other_file.js index e69de29bb2..fd6dcdf66f 100644 --- a/js/other_file.js +++ b/js/other_file.js @@ -0,0 +1,4 @@ +var index = require("./index.js"); + +console.log(index.name); +console.log(index.height); \ No newline at end of file