diff --git a/js/index.js b/js/index.js index e0e752d548..1ac51c46f8 100644 --- a/js/index.js +++ b/js/index.js @@ -1,7 +1,11 @@ var name = "Joe" var height = "74" - + // Don't worry about this module.exports = { name, height } - +if (name === "Joe") { + console.log("The name is correct") +}if (height === "74") { + console.log("The height is correct") +} \ No newline at end of file diff --git a/js/other_file.js b/js/other_file.js index e69de29bb2..24e62bb779 100644 --- a/js/other_file.js +++ b/js/other_file.js @@ -0,0 +1,5 @@ +var index = require("./index.js") + +var index = require("./index.js") + +console.log(index.name)