-
Notifications
You must be signed in to change notification settings - Fork 0
/
62.html
54 lines (38 loc) · 901 Bytes
/
62.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
54
<html>
<head>
<script>
function demo()
{
// const pi = 3.14;
// alert(pi);
// object
// var car = {type : "honda" , model : "xli2020", color : "black"};
// alert(car.color);
// var a = 123;
// var b = a.toString();
// alert(b);
// exponential mean after point counting of number
// var x = 7.44;
// var y = x.toExponential(5);
// alert(y);
// var x = 4.675;
// alert(x.toFixed(1));
// precision mean total no of digit to show
// var x = 9.687;
// alert(x.toPrecision(2));
// to conveert into number
// var x = "123";
// alert(x.valueOf());
// var x = "123";
// alert(parseInt(x));
// var x = "1.32";
// alert(parseFloat(x));
alert(Number.MAX_VALUE);
alert(Number.MIN_VALUE);
}
</script>
</head>
<body>
<button onclick="demo();">click </button>
</body>
</html>