posts[0] を渡した場合、${post.text} には posts[0].text が入っていますか?

show() に posts[0] を渡した場合はそのようになります。
2022年1月18日
ユーザー

以下のコードに関してなのですが、

function show(post) {  //posts[0]
    console.log(`${post.text} - ${post.likeCount} いいね`);
  }
  show(posts[0]);
}

${post.text} には posts[0].text が入っていて
${post.likeCount} には posts[0].likeCount が入っている
という認識であっていますか?

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

プレミアムプランとは?