- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path40_math.js
More file actions
Latest commit
24 lines (17 loc) · 604 Bytes
/
Copy path40_math.js
File metadata and controls
24 lines (17 loc) · 604 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
// math
// const result = Math.PI;
// console.log(result); //3.14
// const result = Math.random() * 10;
// console.log(result); //here he will random values
// const result = Math.floor(4.555555555);
// console.log(result); // result 4
// const result = Math.ceil(4.5555);
// console.log(result); //result 5
// const result = Math.ceil(Math.random() * 10);
// console.log(result); //here ceil never 0, if u have floor please add + 1
// // min max
// const result = Math.max(1, 8, 0, 9);
// console.log(result); //9
// // min max
// const result = Math.min(1, 8, 0, 9);
// console.log(result); //0