Skip to content

Commit 1201626

Browse files
committed
Fix page link bug on 20th page
1 parent 2014f6d commit 1201626

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

Turkish/20_Day_Writing_clean_codes/20_Day_Writing_clean_codes.md

+1-20
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,10 @@ Bu meydan okumada normal JavaScript kuralını takip ediyoruz, ancak yazma terci
102102
#### Değişkenler
103103

104104
```js
105-
106105
let firstName = 'Asabeneh'
107106
let lastName = 'Yetayeh'
108107
let country = 'Finland'
109108
let city = 'Helsinki'
110-
111109
const PI = Math.PI
112110
const gravity = 9.81
113111
```
@@ -142,10 +140,8 @@ const vegetables = ['Tomato', 'Potato', 'Cabbage', 'Onion', 'Carrot']
142140
```js
143141
// bir kişinin tam adını döndüren fonksiyon
144142
const printFullName = (firstName, lastName) => firstName + ' ' + lastName
145-
146143
// bir sayının karesini döndüren fonksiyon
147144
const square = (n) => n * n
148-
149145
// rastgele hexa renkleri oluşturan fonksiyon
150146
const hexaColor = () => {
151147
const str = '0123456789abcdef'
@@ -157,7 +153,6 @@ const hexaColor = () => {
157153
}
158154
return hexa
159155
}
160-
161156
// tarih ve saati gösteren bir fonskiyon
162157
const showDateTime = () => {
163158
const now = new Date()
@@ -172,7 +167,6 @@ const showDateTime = () => {
172167
if (minutes < 10) {
173168
minutes = '0' + minutes
174169
}
175-
176170
const dateMonthYear = date + '.' + month + '.' + year
177171
const time = hours + ':' + minutes
178172
const fullTime = dateMonthYear + ' ' + time
@@ -191,26 +185,19 @@ Bunları nasıl kullandığımızı görelim:
191185
for (let i = 0; i < n; i++){
192186
console.log()
193187
}
194-
195188
// dizi değişkenlerini tanımlıyoruz
196189
const names = ['Asabeneh', 'Mathias', 'Elias', 'Brook']
197-
198190
// normal for döngüsü kullanarak bir diziyi yineleme
199191
let len = names.length;
200192
for(let i = 0; i < len; i++){
201193
console.log(names[i].toUpperCase())
202194
}
203-
204-
205195
// for of kullanarak bir diziyi yinelemek
206196
for( const name of names) {
207197
console.log(name.toUpperCase())
208198
}
209-
210199
// forEach kullanarak bir diziyi yineleme
211200
names.forEach((name) => name.toUpperCase())
212-
213-
214201
const person = {
215202
firstName: 'Asabeneh',
216203
lastName: 'Yetayeh',
@@ -223,7 +210,6 @@ const person = {
223210
for(const key in person) {
224211
console.log(key)
225212
}
226-
227213
```
228214

229215
#### Nesneler
@@ -245,7 +231,6 @@ const person = {
245231
for(const key in person) {
246232
console.log(key, person[key])
247233
}
248-
249234
```
250235

251236
#### Koşullar
@@ -274,7 +259,6 @@ if (num > 0) {
274259

275260
```js
276261
// if else if else if else
277-
278262
let a = 0
279263
if (a > 0) {
280264
console.log(`${a} is a positive number`)
@@ -291,7 +275,6 @@ if (a > 0) {
291275
// Daha fazla switch kullanımı
292276
let dayUserInput = prompt('What day is today ?')
293277
let day = dayUserInput.toLowerCase()
294-
295278
switch (day) {
296279
case 'monday':
297280
console.log('Today is Monday')
@@ -321,7 +304,6 @@ switch (day) {
321304

322305
```js
323306
// ternary (Üçlü)
324-
325307
let isRaining = true
326308
isRaining
327309
? console.log('You need a rain coat.')
@@ -348,7 +330,6 @@ class Person {
348330
this.lastName = lastName
349331
}
350332
}
351-
352333
```
353334

354335
Takip ettiğiniz stil kılavuzu ne olursa olsun tutarlı olun. Bazı programlama paradigmalarını ve tasarım modellerini takip edin. Unutmayın, kodunuzu belirli bir düzende veya şekilde yazmazsanız, kodunuzu okumak zor olacaktır. Bu nedenle, okunabilir kod yazarak kendiniz veya kodunuzu okuyacak biri için bir iyilik yapın.
@@ -357,4 +338,4 @@ Takip ettiğiniz stil kılavuzu ne olursa olsun tutarlı olun. Bazı programlama
357338

358339
🎉 TEBRİKLER ! 🎉
359340

360-
[<< Gün 19](../19_Day_Closures/19_day_closures.md) | [Gün 21 >>](../21_Day_DOM/21_day_dom.md)
341+
[<< Gün 19](../19_Day_Closures/19_day_closures.md) | [Gün 21 >>](../21_Day_DOM/21_day_dom.md)

0 commit comments

Comments
 (0)