Skip to content

Instantly share code, notes, and snippets.

View SonofNun15's full-sized avatar

Josh Graber SonofNun15

  • New Innovations
  • Ohio
View GitHub Profile
@SonofNun15
SonofNun15 / main.js
Last active November 23, 2017 17:02
Asynchronous Javascript
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