-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathders5.js
More file actions
50 lines (41 loc) · 747 Bytes
/
ders5.js
File metadata and controls
50 lines (41 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// sonsuz dongu
function recursiveFonk() {
console.log('Kendi icinde kendini cagiran fonk');
recursiveFonk();
}
function recursiveFonk(i) {
console.log('Kendi icinde kendini cagiran fonk');
if (i > 0) {
recursiveFonk(i - 1);
}
}
var i = 0;
while (i < 0) {
console.log('merhaba');
i += 2;
}
i = 0;
do {
console.log('merhaba');
i += 2;
} while (i < 0);
for (let index = 0; index < array.length; index++) {
const element = array[index];
}
// for in yapuu
// a ve b alinda index
var nesne = { a: 1, b: 2 };
for (var i in nesne) {
console.log(i);
}
i = 0;
while (true) {
if (i == 5) {
i++;
continue;
}
console.log('merhaba');
i++;
if (i == 10) break;
}
//recursive Fonksiyonlar da break ise yaramaz