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

Code Example 1

Debug.Log("hit");

Code Example 2

Debug.log("This text will print to console");

Learn ReactJs, React Native from akashmittal.com