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

Code Example 1

// To print in the console use "Debug.Log()"
Debug.Log("Text");

Code Example 2

Debug.Log("Hello, World");

Learn ReactJs, React Native from akashmittal.com