Skip to content

Commit

Permalink
Update 'Joe' to 'Susan'
Browse files Browse the repository at this point in the history
  • Loading branch information
gj authored Jun 27, 2017
1 parent d454d99 commit 88a7896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ReferenceError: name is not defined
at bootstrap_node.js:508:3
```

The important line here is the `ReferenceError: name is not defined` line. That says that our `name` variable doesn't exist in the `other_file.js` file. That makes sense. In `other_file.js` we never write the line of code to create `name`. We have the line (`var name = "Joe"`) in `index.js`. We need to tell `other_file.js` about the existence of `index.js`! Let's do that by pasting the following line of code into your `other_file.js` file:
The important line here is the `ReferenceError: name is not defined` line. That says that our `name` variable doesn't exist in the `other_file.js` file. That makes sense. In `other_file.js` we never write the line of code to create `name`. We have the line `var name = "Susan"` in `index.js`. We need to tell `other_file.js` about the existence of `index.js`! Let's do that by pasting the following line of code into your `other_file.js` file:

```javascript
var index = require("./index.js")
Expand Down

0 comments on commit 88a7896

Please sign in to comment.