-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path6.dataTypes.html
More file actions
57 lines (41 loc) · 1.39 KB
/
6.dataTypes.html
File metadata and controls
57 lines (41 loc) · 1.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Title</title>
</head>
<body>
<script>
var a,b,c;
document.write("<h1>Before Initialization</h1>");
document.write("<br>Data type of a is ", typeof a);
document.write("<br>Data type of b is ", typeof b);
document.write("<br>Data type of c is ", typeof c);
a=10;
b=3.14;
c="supriya";
var d="true";
var marks=[90,80,60,30];
var student = {name:"sweety",roll_no:454};
document.write("<h1>After Initialization</h1>");
document.write("<br>Data type of a is ", typeof a);
document.write("<br>Data type of b is ", typeof b);
document.write("<br>Data type of c is ", typeof c);
document.write("<br>Data type of d is ", typeof d);
document.write("<br>Data type of marks is ", typeof marks);
document.write("<br>Data type of student is ", typeof student);
document.write("<br>Data type of NULL is ", typeof NULL);
document.write("<br>",marks[0]);
document.write("<br>",marks[1]);
document.write("<br>",student.name);
document.write("<br>",student.roll_no);
var s1, s2;
s1="Your's";
s2 ='"Hello World"';
document.write("<br>",s1);
document.write("<br>",s2);
</script>
</body>
</html>