Skip to content

Instantly share code, notes, and snippets.

@kylebakerio
Last active August 29, 2015 14:25
Show Gist options
  • Save kylebakerio/2322836a34c2dc75c80d to your computer and use it in GitHub Desktop.
Save kylebakerio/2322836a34c2dc75c80d to your computer and use it in GitHub Desktop.
function param7(param) {
return param + 7;
}
1 === 2 ?
console.log("statement 1 passes") :
1 === 3 ?
console.log("statement 2 passes") :
1 === 1 ?
function(){
console.log(param7("ten"));
console.log("llama");
}() :
console.log("no statement passes");
@kylebakerio
Copy link
Author

ok, back to real work for now, I guess.

@kylebakerio
Copy link
Author

ah ha... thought of this while in bed last night... you can use an anonymous function that is executed upon declaration as a block statement, basically (see current version).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment