-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathders13.js
More file actions
68 lines (51 loc) · 1.43 KB
/
ders13.js
File metadata and controls
68 lines (51 loc) · 1.43 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// atob btoa binary to ascii
// decodeURIComponent('akin')
//encodeURIComponent('akin')
// setInterval(function () {console.error('Merhaba!') }, 10000)
// bu belli araliklarla yani yanda belirtilen sure araliklariyla calisir
// setTimeOut(function () {console.error('Merhaba!') }, 10000)
// 1 kere calisir bekleterek yapar
// var timer = setTimeOut(function () {console.error('Merhaba!') }, 10000)
// clearTimeout(timer)
// yukaridaki fonk ise timeout u durdurmaya yarayan fonk bu yuzden calismaz
// ornek
var timer = setTimeOut(function () {
console.error('Merhaba!');
}, 1000);
setTimeout(function () {
clearTimeout(timer);
}, 10001);
// durduramadi cunku arada 1 milisaniye fark var
// ornek2
var i = 10;
var timer;
timer = setInterval(function () {
console.error(--i);
if (i == 0) clearInterval(timer);
}, 1000);
// ctrl space -> window demeye gerek kalmaz
(function (x, y) {}.length);
// parametre sayisini verir
console.assert(1 == 2, '1 ile 2 esit degildir');
console.assert(1 == 1);
console.clear();
console.dir(new String('burak'));
// butun ozellikleri doker
console.table({ a: 1 });
console.group('merhaba');
// consolda yazdiklarimizi gruplamamiza yariyor
console.groupEnd();
// dedigimizde gruptan cikiyor
// onemli !!
window.isNaN('A12');
eval('alert(2)');
//undefined
confirm('hey');
//true
prompt('adin ne');
//"burak"
// eval yerine kullanabilirsin
JSON.parse(data);
fetch();
// veri ceckmeye yarar
// attribute ozellik