<p>コンソールをご覧ください</p>
const myArray = ["りんご", "バナナ", "ぶどう"]; console.log(myArray.at(-1)); // ぶどう
This Pen is owned by Takeshi Kano on CodePen.
See more by @tonkotsuboy on CodePen
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.