this.メソッド名() は無限に繰り返されるのでしょうか?

User クラスのインスタンスの score を呼び出すと score プロパティではなくゲッター score() の結果が返されるということです。
2023年11月19日
ユーザー
const user = new User('taro',89);
user.score = 35;
console.log(user.score);

上記コードのゲッター部分の挙動【console.log(user.score) が実行された際の動き】が分かりません

class User{
  name;
  _score;

  constructor(name,score){
    this.name = name;
    this._score = score;
  }
get score(){
  return this._score;
}

・アンダースコアをつける理由
console.log(user.score) で参照しようとしているが、クラスのプロパティには _ (アンダースコア)が付与されている
この関係がうまく理解できません。

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?

このレッスンの質問と回答(2)