Skip to content

Instantly share code, notes, and snippets.

@YurkaninRyan
Created March 18, 2019 12:12
Show Gist options
  • Save YurkaninRyan/f53e142168ceb1c14f201a1ed2b51563 to your computer and use it in GitHub Desktop.
Save YurkaninRyan/f53e142168ceb1c14f201a1ed2b51563 to your computer and use it in GitHub Desktop.
import double from "./double";
// How were we supposed to know we get a second argument
// that has an onError function?
function doublePlusOne(x) {
// if double isn't a number, it will return a string!
return double(x) + 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment