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.
10 lines
178 B
10 lines
178 B
![]()
13 years ago
|
function Person(name) {
|
||
|
this.name = name;
|
||
|
this.kill = function() { this.name += " is dead"; };
|
||
|
}
|
||
|
|
||
|
var a = new Person("Kenny");
|
||
|
a.kill();
|
||
|
result = a.name == "Kenny is dead";
|
||
|
|