'use strict'

class Monster {

   constructor(name, cp = 100) {
       this.name = name;
       this.cp = cp;
   }

   attack() {
       console.log(`Attack ${this.cp} points!`);
   }

   powerUp() {
       this.cp += 100;
       console.log("Power Up completed!")
   }
}

let mon = new Monster("My Mon");
console.log(mon);
console.log(mon.name);

mon.attack();
mon.powerUp();
mon.attack();

let tam = new Monster("Tam");
console.log(tam);
console.log(tam.name);



'use strict'

class Monster {

   constructor(name) {
       this.name = name;
       this.cp = 100;
   }

   attack() {
       console.log(`Attack ${this.cp} points!`);
   }

   powerUp() {
       this.cp += 100;
       console.log("Power Up completed!")
   }
}

let mon = new Monster("My Mon");
console.log(mon.name);

mon.attack();

mon.powerUp();
mon.attack();
--- 
+++ 
@@ -2,9 +2,9 @@
 
 class Monster {
 
-   constructor(name, cp = 100) {
+   constructor(name) {
        this.name = name;
-       this.cp = cp;
+       this.cp = 100;
    }
 
    attack() {
@@ -18,15 +18,9 @@
 }
 
 let mon = new Monster("My Mon");
-console.log(mon);
 console.log(mon.name);
 
 mon.attack();
+
 mon.powerUp();
 mon.attack();
-
-let tam = new Monster("Tam");
-console.log(tam);
-console.log(tam.name);
-
-
Add cp as default parameter in constructor
