Skip to content

Instantly share code, notes, and snippets.

@ferditarakci
Created October 7, 2022 21:20
Show Gist options
  • Save ferditarakci/1afa4f47b158b28ec9b56de8d7104c15 to your computer and use it in GitHub Desktop.
Save ferditarakci/1afa4f47b158b28ec9b56de8d7104c15 to your computer and use it in GitHub Desktop.
const sum = (a, b) => {
const c = a * 2;
const d = b * 2;
const result = a + b + c + d;
return result;
// süslü parantez kullandığımızda geri sonuç döndürmek için bir "return"'a ihtiyacımız olacak.
}
sum(3, 5);
// output: 24
sum(5, 5);
// output: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment