Check out example codes for "how to crate a list in java script". It will help you in understanding the concepts better.

Code Example 1

var list = [1 ,2 ,"apple",true];

Learn ReactJs, React Native from akashmittal.com