Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default class Monster {
- constructor(name) {
- this.options = name,
- this.pv = 100;
- }
- healing(pv) {
- this.pv += 10;
- }
- }
- const myMonster = new Monster("myMonster");
- console.log(myMonster);
- myMonster.healing();
- console.log(myMonster);
Add Comment
Please, Sign In to add comment