Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 18593ea

Browse files
committed
finished math object
1 parent 9a42171 commit 18593ea

File tree

1 file changed

+34
-0
lines changed
  • Temeller/operators and math object

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
let value;
2+
3+
const number1 = 10 ,number2 = 20;
4+
5+
value = number1 + number2;
6+
value = number1 - number2;
7+
value = number1 * number2;
8+
value = number1 / number2;
9+
value = number1 % number2;
10+
11+
value = Math.PI;
12+
value = Math.E;
13+
14+
value = Math.round(3.6); // sayıları yuvarlar
15+
value = Math.ceil(3.7); // yukarı yuvarlama
16+
value = Math.floor(3.7); // aşağı yuvarlama
17+
18+
value = Math.sqrt(36); // karakök
19+
20+
value = Math.abs(-10); // mutlak değer
21+
22+
value = Math.pow(2,5); // üs alma
23+
24+
value = Math.max(3,5,85,23); // en büyük sonucu dönecek
25+
value = Math.max(3,5,85,23);
26+
27+
value = Math.random(); // rastgele sayı üretme // 0-1 arası // 1 dahil değil
28+
value = Math.random() * 50 ; // 0-50 arası
29+
value = Math.random() * 50 + 22; // 1-62 arası
30+
value = Math.floor(math.random() * 50 + 22); // 1-62 arası tam sayılar
31+
32+
33+
34+
console.log(value);

0 commit comments

Comments
 (0)