Check out example codes for "lua print contents of table". It will help you in understanding the concepts better.

Code Example 1

for k,v in pairs(table) do
 print(v)  
end

Learn ReactJs, React Native from akashmittal.com