Skip to content

Instantly share code, notes, and snippets.

@jw-jenrise
Created January 25, 2018 00:00
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 jw-jenrise/0200b51b06c10fadf334a275e1dd97dc to your computer and use it in GitHub Desktop.
Save jw-jenrise/0200b51b06c10fadf334a275e1dd97dc to your computer and use it in GitHub Desktop.
console.log("Begin example - 4");
// Adding of three numbers using a function
// Define an add function
function add(a,b,c){
return a + b + c;
}
// Calling the function
var d = add(10,20,30);
console.log("Result =" + d);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment