-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path35.html
More file actions
33 lines (30 loc) · 742 Bytes
/
35.html
File metadata and controls
33 lines (30 loc) · 742 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
<!DOCTYPE html>
<html>
<head>
<title>JS </title>
</head>
<body>
<h2>What can JS do?</h2>
<p id="demo"></p>
<script>
const person = {
fname: 'Maya',
lname:'ji',
fullName : function() {
return this.fname + " " + this.lname;
}
};
document.getElementById('demo').innerHTML = person.fullName()
</script>
<!-- <script>
var person = {
fname: 'Maya',
lname: 'ji',
fullName: function() {
return this.fname + " " + this.lname;
}
};
document.getElementById('demo').innerHTML = person.fullName();
</script>-->
</body>
</html>