Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

addChore()

paige edited this page Sep 25, 2023 · 6 revisions

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()

Clone this wiki locally