Skip to content

Çevirilmemiş cümleler çevirildi #69

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
Feb 2, 2020
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
8 changes: 4 additions & 4 deletions 1-js/04-object-basics/06-constructor-new/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ Yapıcı fonksiyon tekrar çağırılamaz çünkü hiç bir yere kayıt edilmemi

## Yapıcı modu testi: new.target

```smart header="Advanced stuff"
The syntax from this section is rarely used, skip it unless you want to know everything.
```smart header="İleri düzey konular"
Bu olay çok nadir kullanılır. Eğer her şeyi öğrenmek istemiyorsanız burayı geçebilirsiniz.
```

Fonksiyon içinde, bu fonksiyon `new` ile mi yoksa `new` olmadan mı çağırılmış bu `new.target` özelliği kullanılarak anlaşılabilir.
Expand All @@ -103,7 +103,7 @@ User(); // new.target undefined döndürür.
new User(); // function Kullanici { ... } gibi ekrana fonksiyonu yazar
```

That can be used to allow both `new` and regular syntax to work the same:
`new` ve normal sözdiziminin(syntax) aynı çalışmasını sağlar:

```js run
function Kullanici(isim) {
Expand All @@ -126,7 +126,7 @@ Genelde yapıcı metodların `return` sözcüğü yoktur. Amaçları gerekli ola
Fakat `return` sözcüğü var ise kurallar basittir:

- Eğer `return` obje ile çağırılırsa `this` yerine bu obje döndürülür.
- Eğer `return` ilkel bir obje il çağırılırsa görmezden gelinir.
- Eğer `return` ilkel bir obje ile çağırılırsa görmezden gelinir.

Diğer bir deyişle, obje ile `return` kullanıldığında obje döner, diğer tüm hallerde `this` döner.

Expand Down