Code QuizIntermediate

Accessing a Private Field

Identify the illegal access of a private class member.

Codetypescript
class Account {
  private balance: number = 100;
}

const a = new Account();
console.log(a.balance);

What is the bug in this code?