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

Code Example 1

Debug.Log("Hello world");

Code Example 2

Debug.Log("Whatever you want your output debug console to display in Unity");
// can take all types of values.
// and don't forget the semi-colon.

Code Example 3

Debug.Log("Hello World");

Code Example 4

Debug.Log("Hello, World");

Learn ReactJs, React Native from