🌈 搜索
📅  最后修改于: 2022-03-11 14:52:15.538000             🧑  作者: Mango
var array = [1,2,3,4,5]; var last_element = array[array.length - 1]; console.log(last_element); //Expected Output: 5