Skip to content

Instantly share code, notes, and snippets.

@Arieg419
Last active December 12, 2017 11:05
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 Arieg419/86a7d5dbb73d32cb74b456e12fcccce4 to your computer and use it in GitHub Desktop.
Save Arieg419/86a7d5dbb73d32cb74b456e12fcccce4 to your computer and use it in GitHub Desktop.
let a = 4;
let b = 5;
let c = 6;
const updateTwoVars = (a, b, c) => [b++, a * b];
const updateRes = updateTwoVars(a,b,c);
b = updateRes[0]
c = updateRes[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment