11 lines
143 B
Plaintext
11 lines
143 B
Plaintext
class Person {
|
|
sayName() {
|
|
print this.name;
|
|
}
|
|
}
|
|
|
|
var jane = Person();
|
|
jane.name = "Jane";
|
|
|
|
var method = jane.sayName;
|
|
method(); |