Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created February 24, 2020 23:15
Show Gist options
  • Save manakuro/1cffccae3d50868ff24f4682a296c2a9 to your computer and use it in GitHub Desktop.
Save manakuro/1cffccae3d50868ff24f4682a296c2a9 to your computer and use it in GitHub Desktop.
function double (x) { return x + x; }
function add (x, y) { return x + y; }
function boundScore (min, max, score) {
return Math.max(min, Math.min(max, score));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment