-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask2
29 lines (25 loc) · 880 Bytes
/
task2
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<script>
// 1. create currentDate variable and store current Date into it and show that in alert popup
var currentDate = new Date();
// what will happen if added small caps "date" here or without ()
alert(currentDate);
// can we check alert through console
// 2. create variables to store patient data - name, age, address, contactNo and print name & age in console
var name = "om";
var age = 40;
var address = "shri kirhsna vihar, pune";
var contactNo = "84927439";
console.log(name);
console.log(age);
// alert(name + " " + age);
</script>
</body>
</html>