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

Code Example 1

//std::cout -> Write in the console
std::cout<<" Your text here "<<std::endl;
//std::endl -> Add a line break
//This work :
int a = 23;
std::cout << a ;
//The console will write '23'

Learn ReactJs, React Native from akashmittal.com