-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path04_Variables.html
More file actions
34 lines (21 loc) · 762 Bytes
/
04_Variables.html
File metadata and controls
34 lines (21 loc) · 762 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
25
26
27
28
29
30
31
32
33
34
<html>
<head>
<script type="text/javascript">
//variables declaration and Initialization
var sName = "Dananajaya";
var sRate = 12.5;
var sSalary = 1220.222;
var sLetter = "D";
var sStatus = true;
//display variables
document.write("Name is = "+sName+"<br>");
document.write("Rate is = "+sRate+"<br>");
document.write("Salary is = "+sSalary+"<br>");
document.write("Letter is = "+sLetter+"<br>");
document.write("Status is = "+sStatus+"<br>");
</script>
</head>
<body>
<Center><h1>This is Javascript Variables</h1></Center>
</body>
</html>