📌  相关文章
📜  如何获取数组的最后一个元素 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:29.239000             🧑  作者: Mango

代码示例6
//Lets we have a array called arr
let arr = ["s","fg","d"]
//Lets print the last element
print(arr[arr.length-1])