@@ -87,7 +87,7 @@ Consider this situation:
87
87
When ` main.js ` loads ` a.js ` , then ` a.js ` in turn loads ` b.js ` . At that
88
88
point, ` b.js ` tries to load ` a.js ` . In order to prevent an infinite
89
89
loop an ** unfinished copy** of the ` a.js ` exports object is returned to the
90
- ` b.js ` module. ` b.js ` then finishes loading, and its exports object is
90
+ ` b.js ` module. ` b.js ` then finishes loading, and its ` exports ` object is
91
91
provided to the ` a.js ` module.
92
92
93
93
By the time ` main.js ` has loaded both modules, they're both finished.
@@ -240,7 +240,7 @@ representing the current module. In particular
240
240
241
241
* {Object}
242
242
243
- The ` exports ` object is created by the Module system. Sometimes this is not
243
+ The ` module. exports` object is created by the Module system. Sometimes this is not
244
244
acceptable, many want their module to be an instance of some class. To do this
245
245
assign the desired export object to ` module.exports ` . For example suppose we
246
246
were making a module called ` a.js `
@@ -281,13 +281,13 @@ y.js:
281
281
### module.require(id)
282
282
283
283
* ` id ` {String}
284
- * Return: {Object} ` exports ` from the resolved module
284
+ * Return: {Object} ` module. exports` from the resolved module
285
285
286
286
The ` module.require ` method provides a way to load a module as if
287
287
` require() ` was called from the original module.
288
288
289
289
Note that in order to do this, you must get a reference to the ` module `
290
- object. Since ` require() ` returns the ` exports ` , and the ` module ` is
290
+ object. Since ` require() ` returns the ` module. exports` , and the ` module ` is
291
291
typically * only* available within a specific module's code, it must be
292
292
explicitly exported in order to be used.
293
293
0 commit comments