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