-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path004 jsoperator.html
53 lines (35 loc) · 1.07 KB
/
004 jsoperator.html
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
<html>
<head>
<title>Operatörler</title>
<script>
x=5;
document.write(x+"<br>");
x++;/* Bir artırma*/
document.write(x+"<br>");
++x;/* Bir artırma*/
document.write(x+"<br>");
x+=3; // x=x+3
document.write(x+"<br>");
x=x/2; /* Bölüm */
document.write(x+"<br>");
x=x**3; /* Üstel işlem*/
document.write(x+"<br>");
x--; /* Bir azaltma */
document.write(x+"<br>");
--x; /* Bir azaltma */
document.write(x+"<br>");
x%=4; /* x=x%4 Mod işlemi: x'in 4'e bölümünden kalanı bulur*/
document.write(x+"<br>");
x*=3; /* x=x*3 üç ile çarpar*/
document.write(x+"<br>");
x/=2; // x=x/2
document.write(x+"<br>");
x-=1.5;
document.write(x+"<br>");
x**=3; // Üs alma işareti x'in küpü bulunur
document.write(x+"<br>");
</script>
</head>
<body>
</body>
</html>