forked from yoyoman21/Javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssignment6.html
More file actions
32 lines (32 loc) · 1.01 KB
/
Assignment6.html
File metadata and controls
32 lines (32 loc) · 1.01 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
<html>
<head>
<title>Javascript</title>
<h1>Assignment6</h1>
</head>
<body bgcolor="yellow">
<script>
document.write("<h4>javascript Datatypes</h4>");
document.write("<br/>The datatypes used in jvascript are as follows");
document.write("<br/>1.String");
document.write("<br/>e.g:-");
var name="vighnesh";
document.write("<br/>",name);
document.write("<br/>2.number");
document.write("<br/>e.g:-");
var no=6;
document.write("<br/>",no);
document.write("<br/>3.array");
document.write("<br/>e.g:-");
var arr=['mango','orange'];
document.write("<br/>",arr);
document.write("<br/>4.boolean");
document.write("<br/>e.g:-");
var n=false;
document.write("<br/>",n);
document.write("<br/>5.null");
document.write("<br/>e.g:-");
var b=null;
document.write("<br/>",b);
</script>
</body>
</html>