Skip to content

Instantly share code, notes, and snippets.

@vishalm30
Created July 16, 2019 15:38
Show Gist options
  • Select an option

  • Save vishalm30/caf64c0a84d0326622b13aad2daae7a6 to your computer and use it in GitHub Desktop.

Select an option

Save vishalm30/caf64c0a84d0326622b13aad2daae7a6 to your computer and use it in GitHub Desktop.
function getarea(length,width){
var a = length * width;
return a;
}
function getperimeter(a,b){
var p = 2*(a+b);
return p;
}
function main(){
var a = getarea(2,4);
console.log(a);
var p = getperimeter(2,4);
console.log(p);
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment