For this Question: Complete the constructor function <code>Account</code>. It should contain the properties <code>accountNum, password, name, balance </code>, equal to the respective parameters, and a method <code>addInterest</code> which will <code>add the interest to the existing balance</code> using the formula <code>balance * (default interest rate / 100)</code> and then return the updated <code>balance</code>. The default interest rate should be 10%.

Now create a new class <code>SavingsAccount</code> extended from the <code>Account</code> constructor function such that it accepts a new field called <code>interest</code>.
Now in this class add another <code>addInterest</code> method such that the interest is not 10% now instead it's the new interest passed to this class. The method should also <code>add the interest to the existing balance</code> using the formula <code>balance * (interest / 100)</code> and then return the updated <code>balance</code>.

In both classes, (i.e. the parent class and the child class) the <code>addInterest</code> method should be completed which takes no arguments but returns the current balance of that instance after adding the interest.The Account class constructor will take 4 arguments

<ul><li>accountNum(string), password(string), name(string), balance(number)</li></ul> 

The SavingsAccount class will take 5 arguments

<ul><li> accountNum(string), password(string), name(string), balance(number), interest(number)</li></ul>The method <code>addInterest</code> will return the current balance after adding interest.
<code>
const hey = new SavingsAccount('newton1103', '*****', 'company', 1500, 20);
let bal = hey.addInterest()
console.log(bal) //1800

</code>
, I have written this Solution Code: function account (accountNum, password, name, balance){
    this.accountNum = accountNum;
    this.password = password
    this.name = name
    this.balance = balance
    this.addInterest = function(){
        this.balance += this.balance*0.1
        return this.balance;
    }
}

class savingsAccount extends account{
    constructor(accountNum, password, name, balance,interest){
        super(accountNum, password, name, balance)
        this.interest = interest
    }
    addInterest = function(){
        this.balance += this.balance*(this.interest/100)
       return this.balance;
    }
}, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?