addChore() - shysolocup/aepl GitHub Wiki
addChore() adds a new chore
const Class = require('aepl');
new Class("Main", class {
constructor() {
this.data = [1, 2, 3];
}
});
Main.addChore("reverse", `return this.data.reverse();`);
let main = new Main();
console.log(main.reverse()); // [3, 2, 1]
Class.addChore()
description: adds a new chore calls:
- addChore()
- setChore()
- newChore()
- addCh()
- setCh()
- newCh()