Created
October 7, 2022 21:20
-
-
Save ferditarakci/1afa4f47b158b28ec9b56de8d7104c15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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