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
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.
2898
2898
2899
2899
</p>
2900
2900
</details>
@@ -2924,14 +2924,14 @@ for (const [x, y] of Object.entries(person)) {
2924
2924
2925
2925
#### Cevap: A
2926
2926
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:
2928
2928
2929
2929
`[ [ 'name', 'Lydia' ], [ 'age', 21 ] ]`
2930
2930
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.
2932
2932
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.
`...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.
0 commit comments