Last active
October 7, 2022 21:14
-
-
Save ferditarakci/15a7a4edf48fc92dd8b865b11ca1cc09 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
// Function Declaration | |
function sayHello(name) { | |
return `Merhaba, ${name}!`; | |
} | |
sayHello("Ferdi"); | |
// output: Merhaba Ferdi | |
// --------------------------- | |
// Function Expression | |
const sayHello = function(name) { | |
return `Merhaba, ${name}`; | |
} | |
sayHello("Meryem"); | |
// output: Merhaba Meryem | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment