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.
|
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";
|
|
|