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: tr-TR/README-tr_TR.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2765,9 +2765,9 @@ sum(10)
2765
2765
2766
2766
#### Cevap: B
2767
2767
2768
-
You can set a default parameter's value equal to another parameter of the function, as long as they've been defined _before_ the default parameter. We pass the value `10` to the `sum` function. If the `sum`function only receives 1 argument, it means that the value for `num2`is not passed, amd the value of `num1` is equal to the passed value `10`in this case. The default value of `num2` is the value of `num1`, which is `10`. `num1 + num2`returns `20`.
2769
-
2770
-
If you're trying to set a default parameter's value equal to a parameter which is defined _after_ (to the right), the parameter's value hasn't been initialized yet, which will throw an error.
2768
+
Varsayılan parametrenin değerini fonksiyonun başka parametresine eşitleyebilirsiniz, varsayılan parametreden _önce_ tanımladıkları müddetçe. `sum` fonksiyonuna `10` değerini geçtik. Eğer `sum`fonksiyonu sadece 1 argüman alırsa, `num2`değeri geçilmedi demektir, ve `num1`'ın değeri geçtiğimiz `10`değerine eşittir bu durumda. `num2`'nun varsayılan değeri `num1`'dır ki o da `10`'dur. `num1 + num2``20` döndürür.
2769
+
2770
+
Eğer varsayılan parametrenin değerini, _sonrasında_ (sağında) tanımlanmış bir parametreye eşitlemeye çalışıyorsanız, parametrenin değeri henüz oluşturulmamıştır, hata fırlatacaktır.
2771
2771
2772
2772
</p>
2773
2773
</details>
@@ -2790,16 +2790,16 @@ console.log(data)
2790
2790
- A: `{ default: function default(), name: "Lydia" }`
2791
2791
- B: `{ default: function default() }`
2792
2792
- C: `{ default: "Hello world", name: "Lydia" }`
2793
-
- D: Global object of `module.js`
2793
+
- D: `module.js`'e ait global nesne
2794
2794
2795
2795
<details><summary><b>Cevap</b></summary>
2796
2796
<p>
2797
2797
2798
2798
#### Cevap: A
2799
2799
2800
-
With the `import * as name`syntax, we import _all exports_ from the `module.js`file into the `index.js`file as a new object called `data`is created. In the `module.js`file, there are two exports: the default export, and a named export. The default export is a function which returns the string `"Hello World"`, and the named export is a variable called `name` which has the value of the string `"Lydia"`.
2800
+
`import * as name`yazımı ile, `module.js`dosyası içindeki _tüm `export`'ları_`index.js`dosyası içinde `data`olarak adlandırdığımız yeni bir nesneye aktarıyoruz. `module.js`dosyası içinde, iki `export` var: varsayılan export ve isimlendirilmiş export. Varsayılan export `"Hello World"` string'i döndüren bir fonksiyon ve isimlendirilmiş export `"Lydia"` değerine sahip `name` olarak isimlendirilmiş değişken.
2801
2801
2802
-
The `data`object has a `default`property for the default export, other properties have the names of the named exports and their corresponding values.
2802
+
`data`nesnesi varsayılan exportlar için `default`özelliğine, isilendirilmiş exportlar için isimlendirilmiş export'un ismi olan ve değeri isimlendirilmiş export'un değeri olan özelliklere sahiptir.
Classes are syntactical sugar for function constructors. The equivalent of the `Person`class as a function constructor would be:
2832
+
Sınıflar fonksiyon yapıcıları için "syntactical sugar"dır. `Person`sınıfına denk olan sınıf yapıcısı şöyle olabilirdi:
2833
2833
2834
2834
```javascript
2835
2835
functionPerson() {
2836
2836
this.name= name
2837
2837
}
2838
2838
```
2839
2839
2840
-
Calling a function constructor with `new`results in the creation of an instance of `Person`, `typeof`keyword returns `"object"`for an instance. `typeof member`returns `"object"`.
2840
+
Bir fonksiyon yapıcısını `new`ile çağırmak `Person` "instance" oluşturur, `typeof`anahtar kelimesi instance için `"object"`döndürür. `typeof member``"object"` döndürür.
The `.push`method returns the _new length_ of the array, not the array itself! By setting `newList` equal to `[1, 2, 3].push(4)`, we set `newList` equal to the new length of the array: `4`.
2865
+
`.push`methodu dizinin _yeni uzunluğunu_ döndürür, dizinin kendisini değil! `newList`'i `[1, 2, 3].push(4)`'a eşitleyerek, `newList`'i dizinin yeni uzunluğuna eşitledik: `4`.
2866
2866
2867
-
Then, we try to use the `.push`method on `newList`. Since `newList`is the numerical value `4`, we cannot use the `.push`method: a TypeError is thrown.
2867
+
Sonra, `.push`methodunu `newList` üzerinde kullanmayo denedik. `newList`sayısal değer `4` olduğundan, `.push`methodunu kullanamayız: TypeError fırlatılır.
0 commit comments