Skip to content

Instantly share code, notes, and snippets.

@rahulmalhotra
Created January 9, 2021 12:47
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 rahulmalhotra/d0372bcdf2b00ae4da7e3f7dc931bb53 to your computer and use it in GitHub Desktop.
Save rahulmalhotra/d0372bcdf2b00ae4da7e3f7dc931bb53 to your computer and use it in GitHub Desktop.
This code snippet is used in Fat Arrow Functions in JavaScript Tutorial for SFDC Stop
function perimeterOfACircle1(radius) {
const PI = 3.14;
return 2 * PI * radius;
}
console.log(perimeterOfACircle1(10));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment