Skip to content

Arrow functions, the basics #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions 1-js/02-first-steps/15-function-expressions/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Daha önceden *fonksiyon tanımlama* için aşağıdaki form kullanılmıştı.

```js
function selamVer() {
alert( "Merhaba" );
alert("Merhaba");
}
```

Expand All @@ -18,7 +18,7 @@ Aşağıdaki gibi görünür:

```js
let selamVer = function() {
alert( "Merhaba" );
alert("Merhaba");
};
```

Expand All @@ -30,7 +30,7 @@ Hatta yazdığımız fonksiyonu `alert` ile ekrana basmak da mümkündür.

```js run
function selamVer() {
alert( "Merhaba" );
alert("Merhaba");
}

*!*
Expand All @@ -51,7 +51,7 @@ Fakat yine de değerdir. Bundan dolayı diğer değerlerle uğraşıldığı gib

```js run no-beautify
function selamVer() { // (1) oluştur
alert( "Merhaba" );
alert("Merhaba");
}

let func = selamVer; // (2) kopyala
Expand Down Expand Up @@ -128,11 +128,11 @@ function sor(soru, evet, hayir) {
*/!*

function tamamGoster() {
alert( "Kabul ettiniz" );
alert("Kabul ettiniz");
}

function iptalGoster() {
alert( "Çalışmasını durdurdunuz" );
alert("Çalışmasını durdurdunuz");
}
// kullanım: tamamGoster, iptalGoster fonksiyona parametre olarak gönderilmiştir.
sor("Kabul ediyor musunuz?", tamamGoster, iptalGoster);
Expand Down