How to get the array elements

Obtaining an array element
var ARR = [ 'Red', 'Green', 'Blue'];
ARR [0]; // Red
ARR [2]; // Blue
ARR [. 3]; // max index of the array is 2, the flow returns undefined

Published 68 original articles · won praise 0 · Views 1285

Guess you like

Origin blog.csdn.net/zmmsdk/article/details/103584328