Check out example codes for "processing pi". It will help you in understanding the concepts better.

Code Example 1

print(PI);

// Will print 3.14159265...
// Can be used as a variable

Learn ReactJs, React Native from akashmittal.com