Skip to content

Instantly share code, notes, and snippets.

@yukkeorg

yukkeorg/result Secret

Last active June 10, 2017 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukkeorg/94fb497e1639e786a4acc55c060ed84f to your computer and use it in GitHub Desktop.
Save yukkeorg/94fb497e1639e786a4acc55c060ed84f to your computer and use it in GitHub Desktop.
teratail-79856
yukke@yukke-rpi3:~ $ nvm ls
-> v6.10.3
default -> v6.10.3
node -> stable (-> v6.10.3) (default)
stable -> 6.10 (-> v6.10.3) (default)
iojs -> N/A (default)
lts/* -> lts/boron (-> N/A)
lts/argon -> v4.8.3 (-> N/A)
lts/boron -> v6.11.0 (-> N/A)
yukke@yukke-rpi3:~ $ node -v
v6.10.3
yukke@yukke-rpi3:~ $ node test.js
2
function f(func) {
let ret = func();
console.log(ret);
}
f(() => { return 1 + 1; }); // => 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment