You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
340 B
20 lines
340 B
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script type="text/javascript">
|
|
function person(name, age){
|
|
this.name = name;
|
|
this.age = age;
|
|
}
|
|
|
|
var bucky = new person("Bucky Roberts", 24);
|
|
var taylor = new person("Taylor Swift", 20);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript">
|
|
document.write(taylor.age);
|
|
</script>
|
|
</body>
|
|
</html>
|