The best way to get element from the end of array in JavaScript?

后端 未结 0 1530
野趣味
野趣味 2021-02-09 17:50

For example an array.

const array = [0,1,2,3,4,5,6,7,8,9];

And here we should take the third element from the end of each time without using

相关标签:
回答
  • 消灭零回复
提交回复
热议问题