Skip to content

Commit 5291fd1

Browse files
committed
Translates 91-94
1 parent 85d4fca commit 5291fd1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tr-TR/README-tr_TR.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2894,7 +2894,7 @@ console.log(giveLydiaChocolate.prototype)
28942894

28952895
#### Cevap: D
28962896

2897-
Regular functions, such as the `giveLydiaPizza` function, have a `prototype` property, which is an object (prototype object) with a `constructor` property. Arrow functions however, such as the `giveLydiaChocolate` function, do not have this `prototype` property. `undefined` gets returned when trying to access the `prototype` property using `giveLydiaChocolate.prototype`.
2897+
Sıradan fonksiyonlar, `giveLydiaPizza` gibi, `constructor` özelliği olan `prototype` nesnesi özelliğine sahiptir. Ancak ok fonksiyonlar (arrow functions), `giveLydiaChocolate` gibi, bu `prototype` özelliğine sahip değildir. `giveLydiaChocolate.prototype` ile `prototype` özelliğine erişmeye çalışıldığında `undefined` döndürülür.
28982898

28992899
</p>
29002900
</details>
@@ -2924,14 +2924,14 @@ for (const [x, y] of Object.entries(person)) {
29242924

29252925
#### Cevap: A
29262926

2927-
`Object.entries(person)` returns an array of nested arrays, containing the keys and objects:
2927+
`Object.entries(person)` key ve nesneleri içeren dizilerden oluşan dizi döndürür:
29282928

29292929
`[ [ 'name', 'Lydia' ], [ 'age', 21 ] ]`
29302930

2931-
Using the `for-of` loop, we can iterate over each element in the array, the subarrays in this case. We can destructure the subarrays instantly in the for-of loop, using `const [x, y]`. `x` is equal to the first element in the subarray, `y` is equal to the second element in the subarray.
2931+
`for-of` döngüsünü kullanarak, dizi içindeki her bir elemanı gezebiliriz, alt dizileri bu örnekte. for-of döngüsü içinde alt dizileri `const [x, y]` kullanarak parçalayabiliriz. `x` alt dizideki ilk elemana, `y` alt dizideki ikinci elemana eşittir.
29322932

2933-
The first subarray is `[ "name", "Lydia" ]`, with `x` equal to `"name"`, and `y` equal to `"Lydia"`, which get logged.
2934-
The second subarray is `[ "age", 21 ]`, with `x` equal to `"age"`, and `y` equal to `21`, which get logged.
2933+
İlk alt dizi `[ "name", "Lydia" ]`, `x` `"name"`'e ve `y` `"Lydia"`'ya eşittir.
2934+
İkinci alt dizi `[ "age", 21 ]`, `x` `"age"`'e ve `y` `21`'a eşittir.
29352935

29362936
</p>
29372937
</details>
@@ -2958,7 +2958,7 @@ getItems(["banana", "apple"], "pear", "orange")
29582958

29592959
#### Cevap: D
29602960

2961-
`...args` is a rest parameter. The rest parameter's value is an array containing all remaining arguments, **and can only be the last parameter**! In this example, the rest parameter was the second parameter. This is not possible, and will throw a syntax error.
2961+
`...args` bir "rest" parametredir. "Rest" parametresinin değeri geriye kalan tüm argümanları içeren bir dizidir, ve **sadece son parametre olabilir.** Bu örnekte, rest parametresi ikindi parametreydi. Bu mümkün değildir ve syntax hatası fırlatılacaktır.
29622962

29632963
```javascript
29642964
function getItems(fruitList, favoriteFruit, ...args) {
@@ -2968,6 +2968,7 @@ function getItems(fruitList, favoriteFruit, ...args) {
29682968
getItems(["banana", "apple"], "pear", "orange")
29692969
```
29702970

2971-
The above example works. This returns the array `[ 'banana', 'apple', 'orange', 'pear' ]`
2971+
Yukarıdaki örnek çalışır. `[ 'banana', 'apple', 'orange', 'pear' ]` dizisini döndürür.
2972+
29722973
</p>
29732974
</details>

0 commit comments

Comments
 (0)