For this Question: Complete the given JS Class and also its static methods. Static member can be accessed before any objects of its class are created, and without reference to any object
The static methods works as follows
<code>returnTotalAccounts</code> : return the total number of accounts created using this class
<code> returnTotalBalance </code>: returns the total balance of all accounts created using this class


Note: Input and Output are handled by the judgeThe class Account constructor takes 2 arguments
<ul><li>accountName(string), balance(number) </li></ul>

Both the static methods <code> returnTotalAccounts</code> and <code>returnTotalBalance</code> doesn't take any argumentsThe method  <code> returnTotalAccounts</code> returns totalAccounts(Number)
The method <code>returnTotalBalance</code> returns totalBalance(Number)let user1 = new Account("newton1102", 1000)
let user2 = new Account("newton2231", 2000)
let user3 = new Account("newton1212", 500)

let totalAccounts = account.returnTotalAccounts()
let totalBal = account.returnTotalBalance()  

console.log(totalAccounts)
cosole.log(totalBal)
//3
//3500
</code>
</pre>, I have written this Solution Code: class Account {
    static accounts = 0
    static totalBalance = 0
    constructor(accountNum, balance) {
        this.accountNum = accountNum;
        this.balance = balance;
        Account.accounts += 1
        Account.totalBalance += balance
    }
    deposit = function (amount) {
        this.balance += amount;
        Account.totalBalance += amount
    };
    static returnTotalAccounts(){
        return Account.accounts
    }
    static returnTotalBalance(){
        return Account.totalBalance
    }
}
, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?