Skip to content

Commit d10c068

Browse files
committed
translates till 86
1 parent e629605 commit d10c068

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

README-tr_TR.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,10 +2585,9 @@ setTimeout(() => {
25852585

25862586
#### Cevap: B
25872587

2588-
The value of the `this` keyword is dependent on where you use it. In a **method**, like the `getStatus` method, the `this` keyword refers to _the object that the method belongs to_. The method belongs to the `data` object, so `this` refers to the `data` object. When we log `this.status`, the `status` property on the `data` object gets logged, which is `"🥑"`.
2589-
2590-
With the `call` method, we can change the object to which the `this` keyword refers. In **functions**, the `this` keyword refers to the _the object that the function belongs to_. We declared the `setTimeout` function on the _global object_, so within the `setTimeout` function, the `this` keyword refers to the _global object_. On the global object, there is a variable called _status_ with the value of `"😎"`. When logging `this.status`, `"😎"` gets logged.
2588+
`this` anahtar kelimesinin değeri, onu nerede kullandığınıza bağlıdır. **method** içinde, `getStatus` methodu gibi, `this` anahtar kelimesi _methodun bağlı olduğu nesneyi_ referans gösterir. Method `data` nesnesine ait, bu yüzden `this` `data` nesnesini referans gösterir. `this.status`'ü logladığımız zaman, `data` nesnesindeki `status` özelliği loglanır, ki o da `"🥑"`.
25912589

2590+
`call` methodu ile, `this` anahtar kelimesinin referans gösterdiği nesneyi değiştirebiliriz. **fonksiyon** içinde, `this` anahtar kelimesi _fonksiyonun ait olduğu nesneyi_ referans gösterir. _global nesne_ üzerinde `setTimeout` fonksiyonu tanımladık, yani `setTimeout` fonksiyonu içinde, `this` anahtar kelimesi _global nesneyi_ referans gösterir. Global nesnede, değeri `"😎"` olan _status_ olarak adlandırılmış bir değişken var. `this.status`'ü logladığımız zaman, `"😎"` loglanır.
25922591

25932592
</p>
25942593
</details>
@@ -2618,14 +2617,14 @@ console.log(person)
26182617
<p>
26192618

26202619
#### Cevap: A
2620+
2621+
`city` değişkenini, `person` nesnesindeki `city` özelliğinin değerine eşitledik. `person` nesnesinde `city` diye isimlendirilmiş bir özellik yok, bu yüzden `city` değişkeni `undefined` değerine sahip olur.
26212622

2622-
We set the variable `city` equal to the value of the property called `city` on the `person` object. There is no property on this object called `city`, so the variable `city` has the value of `undefined`.
2623-
2624-
Note that we are _not_ referencing the `person` object itself! We simply set the variable `city` equal to the current value of the `city` property on the `person` object.
2625-
2626-
Then, we set `city` equal to the string `"Amsterdam"`. This doesn't change the person object: there is no reference to that object.
2623+
`person` nesnesinin kendisini referans _göstermediğimize_ dikkat edin! Sadece `city` değişkenini, `person` nesnesindeki `city` özelliğinin o andaki değerine eşitledik.
26272624

2628-
When logging the `person` object, the unmodified object gets returned.
2625+
Sonra, `city`'i `"Amsterdam"` string'ine eşitledik. Bu `person` nesnesini değiştirmez: bu nesneye referans yok.
2626+
2627+
`person` nesnesini logladığımız zaman, değişikliğe uğramamış nesne döndürülür.
26292628

26302629
</p>
26312630
</details>
@@ -2658,39 +2657,39 @@ console.log(checkAge(21))
26582657

26592658
#### Cevap: C
26602659

2661-
Variables with the `const` and `let` keyword are _block-scoped_. A block is anything between curly brackets (`{ }`). In this case, the curly brackets of the if/else statements. You cannot reference a variable outside of the block it's declared in, a ReferenceError gets thrown.
2660+
`const` ve `let` anahtar kelimesine sahip değişkenler _block-scoped_'dur. Blok süslü parantezler (`{}`) arasındaki herhangi bir şeydir. Bu örnekte, if/else ifadesindeki süslü parantezlerdir. Bir değişkene, tanımlandığı blok dışından erişemezsiniz, ReferenceError fırlatılır.
26622661

26632662
</p>
26642663
</details>
26652664

26662665
---
26672666

2668-
###### 85. What kind of information would get logged?
2667+
###### 85. Loglanacak değer ne tür olur?
26692668

26702669
```javascript
26712670
fetch('https://www.website.com/api/user/1')
26722671
.then(res => res.json())
26732672
.then(res => console.log(res))
26742673
```
26752674

2676-
- A: The result of the `fetch` method.
2677-
- B: The result of the second invocation of the `fetch` method.
2678-
- C: The result of the callback in the previous `.then()`.
2679-
- D: It would always be undefined.
2675+
- A: `fetch` methodunun sonucu.
2676+
- B: `fetch` methodunun ikinci kez çağrılmasından dönen sonuç.
2677+
- C: Bir önceki `.then()`'in sonucu.
2678+
- D: Her zaman `undefined` olacaktır.
26802679

26812680
<details><summary><b>Cevap</b></summary>
26822681
<p>
26832682

26842683
#### Cevap: C
26852684

2686-
The value of `res` in the second `.then` is equal to the returned value of the previous `.then`. You can keep chaining `.then`s like this, where the value is passed to the next handler.
2685+
İkinci `.then` içindeki `res`'in değeri bir önceki `.then`'den dönen değere eşittir. Bunun gibi, değerlerin bir sonraki yöneticiye (handler) geçileceği şekilde, `.then`'leri birbirlerine bağlayabilirsiniz,
26872686

26882687
</p>
26892688
</details>
26902689

26912690
---
26922691

2693-
###### 86. Which option is a way to set `hasName` equal to `true`, provided you cannot pass `true` as an argument?
2692+
###### 86. `true`'yu argüman olarak geçemediğiniz durumda, hangi seçenek `hasName`'i `true`'ya eşitlemenin yoludur?
26942693

26952694
```javascript
26962695
function getName(name) {
@@ -2708,13 +2707,13 @@ function getName(name) {
27082707

27092708
#### Cevap: A
27102709

2711-
With `!!name`, we determine whether the value of `name` is truthy or falsey. If name is truthy, which we want to test for, `!name` returns `false`. `!false` (which is what `!!name` practically is) returns `true`.
2710+
`!!name` ile, `name`'in değerinin doğrusal ya da yanlış-ımsı olup olmadığını belirleriz. Eğer `name` doğrusalsa, ki test etmek istediğimiz bu, `!name` `false` döndürür. `!false` (bu da `!!name` ne demekse o demektir gerçekte) `true` döndürür.
27122711

2713-
By setting `hasName` equal to `name`, you set `hasName` equal to whatever value you passed to the `getName` function, not the boolean value `true`.
2712+
`hasName`'i `name`'e eşitleyerek, `hasName`'i `getName` fonksiyonuna hangi değeri geçtiyseniz ona eşitlersiniz, `true` değerine değil.
27142713

2715-
`new Boolean(true)` returns an object wrapper, not the boolean value itself.
2714+
`new Boolean(true)` nesne (object wrapper) döndürür, doğru/yanlış (boolean) değerinin kendisini değil.
27162715

2717-
`name.length` returns the length of the passed argument, not whether it's `true`.
2716+
`name.length` geçilen argümanın uzunluğunu döndürür, `true` olup olmadığını değil.
27182717

27192718
</p>
27202719
</details>

0 commit comments

Comments
 (0)