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

Code Example 1

Debug.WriteLine("My debug string here");

Learn ReactJs, React Native from akashmittal.com