This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const start = require('./start') | |
const run = require('./run') | |
// INCORRECT approach: | |
// start doesn't return anything immediately, so this variable | |
// will be undefined. | |
const willBeUndefined = start((myPet) => { | |
// We can log the pet which start creates |