2020年4月25日解決済み

forEach()の前につけている「.」はなんですか?

ユーザー
{
  const scores = [80, 90, 40, 70];

  // scores.forEach(score => {
  scores.forEach((score, index) => {
    console.log(`Score ${index}: ${score}`);
  });
}

とありますがscores.とドットをつける意味はなんですか?

スタッフ

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

プレミアムプランとは?