Check out example codes for "pause the console c++". It will help you in understanding the concepts better.

Code Example 1

// This is only one of many ways but you can use

getchar();

Learn ReactJs, React Native from akashmittal.com