You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README-tr_TR.md
+20-21Lines changed: 20 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2585,10 +2585,9 @@ setTimeout(() => {
2585
2585
2586
2586
#### Cevap: B
2587
2587
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 `"🥑"`.
2591
2589
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.
2592
2591
2593
2592
</p>
2594
2593
</details>
@@ -2618,14 +2617,14 @@ console.log(person)
2618
2617
<p>
2619
2618
2620
2619
#### 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.
2621
2622
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.
2627
2624
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.
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.
2662
2661
2663
2662
</p>
2664
2663
</details>
2665
2664
2666
2665
---
2667
2666
2668
-
###### 85. What kind of information would get logged?
2667
+
###### 85. Loglanacak değer ne tür olur?
2669
2668
2670
2669
```javascript
2671
2670
fetch('https://www.website.com/api/user/1')
2672
2671
.then(res=>res.json())
2673
2672
.then(res=>console.log(res))
2674
2673
```
2675
2674
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.
2680
2679
2681
2680
<details><summary><b>Cevap</b></summary>
2682
2681
<p>
2683
2682
2684
2683
#### Cevap: C
2685
2684
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,
2687
2686
2688
2687
</p>
2689
2688
</details>
2690
2689
2691
2690
---
2692
2691
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?
2694
2693
2695
2694
```javascript
2696
2695
functiongetName(name) {
@@ -2708,13 +2707,13 @@ function getName(name) {
2708
2707
2709
2708
#### Cevap: A
2710
2709
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.
2712
2711
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.
2714
2713
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.
2716
2715
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.
0 commit comments