Last active
March 7, 2017 22:55
-
-
Save rbadillap/efd5ccbc23ec20893ce4b024b7e75265 to your computer and use it in GitHub Desktop.
Stairway to Heaven (javascript)
This file contains 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
// Stairway to heaven | |
const lady = new Lady({ | |
glitters: GOLD, // for sure | |
buying: () => 'Stairway to Heaven' | |
}); | |
lady.on('gets-there', () => { | |
lady.knows(() => { | |
if( stores.areAll('closed') ) { | |
with ( word ) { | |
lady.can.get( what.sheCameFor() ); | |
} | |
} | |
}) | |
.then( lady.buying() ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment