You can get the total length of an array by using length
.
array[array.length-1]
solved select last array without knowing the total number of item [duplicate]
You can get the total length of an array by using length
.
array[array.length-1]
solved select last array without knowing the total number of item [duplicate]