Check out example codes for "print in c# unity". It will help you in understanding the concepts better.
Code Example 1
Debug.Log("hit");
Code Example 2
// To print in the console use "Debug.Log()"
Debug.Log("Text");
Code Example 3
Debug.log("This text will print to console");
Learn ReactJs, React Native from akashmittal.com