Skip to content

Commit 335df49

Browse files
committed
Arrow functions, the basics
1 parent 225ad31 commit 335df49

File tree

1 file changed

+6
-6
lines changed
  • 1-js/02-first-steps/15-function-expressions

1 file changed

+6
-6
lines changed

1-js/02-first-steps/15-function-expressions/article.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Daha önceden *fonksiyon tanımlama* için aşağıdaki form kullanılmıştı.
77

88
```js
99
function selamVer() {
10-
alert( "Merhaba" );
10+
alert("Merhaba");
1111
}
1212
```
1313

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

1919
```js
2020
let selamVer = function() {
21-
alert( "Merhaba" );
21+
alert("Merhaba");
2222
};
2323
```
2424

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

3131
```js run
3232
function selamVer() {
33-
alert( "Merhaba" );
33+
alert("Merhaba");
3434
}
3535

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

5252
```js run no-beautify
5353
function selamVer() { // (1) oluştur
54-
alert( "Merhaba" );
54+
alert("Merhaba");
5555
}
5656

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

130130
function tamamGoster() {
131-
alert( "Kabul ettiniz" );
131+
alert("Kabul ettiniz");
132132
}
133133

134134
function iptalGoster() {
135-
alert( "Çalışmasını durdurdunuz" );
135+
alert("Çalışmasını durdurdunuz");
136136
}
137137
// kullanım: tamamGoster, iptalGoster fonksiyona parametre olarak gönderilmiştir.
138138
sor("Kabul ediyor musunuz?", tamamGoster, iptalGoster);

0 commit comments

Comments
 (0)