mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-04-22 09:09:09 +00:00
16 lines
223 B
JavaScript
16 lines
223 B
JavaScript
class Test {
|
|
returnsBill() {
|
|
return "Bill";
|
|
}
|
|
|
|
static returnsTed() {
|
|
return "Ted";
|
|
}
|
|
|
|
render({ name }) {
|
|
return `<p>${name}${this.returnsBill()}${Test.returnsTed()}</p>`;
|
|
}
|
|
}
|
|
|
|
module.exports = Test;
|