Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add a promise to the old one and chain it
const recordSong = function(new_post) {
// This is a shorthand for functions with just resolved state.
return Promise.resolve("I have recorded a song and "+new_post);
// Kudos to you if you caught the shorthand in 'console.log'
// statments compared to the way I used in the previous example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment