Skip to content

Instantly share code, notes, and snippets.

@suhailgupta03
Created May 15, 2023 17:01
Show Gist options
  • Select an option

  • Save suhailgupta03/0e0434e466b97e19dc44ebe1e6e7c612 to your computer and use it in GitHub Desktop.

Select an option

Save suhailgupta03/0e0434e466b97e19dc44ebe1e6e7c612 to your computer and use it in GitHub Desktop.
function sum(x, y) {
var z = x + y;
return z; // return back the value of
// z
}
var zz = sum(5 , 6);
// sum(5 , 6) evaluates to 11
// sum(10, 20) evaluates to 30
console.log(zz);
zz = sum(10, 20);
console.log(zz);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment