Guest User

Untitled

a guest
Jul 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. export default class Monster {
  2. constructor(name) {
  3. this.options = name,
  4. this.pv = 100;
  5. }
  6.  
  7. healing(pv) {
  8. this.pv += 10;
  9. }
  10. }
  11.  
  12.  
  13. const myMonster = new Monster("myMonster");
  14.  
  15.  
  16. console.log(myMonster);
  17.  
  18. myMonster.healing();
  19.  
  20. console.log(myMonster);
Add Comment
Please, Sign In to add comment