This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
design_guide_projects [2020/06/20 07:41] z3dev |
design_guide_projects [2020/06/20 07:43] z3dev |
||
---|---|---|---|
Line 13: | Line 13: | ||
The 'index' within the project is the entry point of the project. The main function of this piece is to create each of the pieces, move the pieces into position, and return the complete design. And by convention, exports the main function. | The 'index' within the project is the entry point of the project. The main function of this piece is to create each of the pieces, move the pieces into position, and return the complete design. And by convention, exports the main function. | ||
- | <code> | + | <code javascript> |
const chassis = require('./chassis') | const chassis = require('./chassis') | ||
const body = require('./body') | const body = require('./body') | ||
Line 26: | Line 26: | ||
return [partA, partB, tires] | return [partA, partB, tires] | ||
} | } | ||
- | <code\> | ||
- | |||
module.exports = { main } | module.exports = { main } | ||
+ | </code> | ||