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

Code Example 1

<script>
  console.log('%c text', 'background:---; color:---; font-size:---;');
</script>

Code Example 2

console.log('string');

Code Example 3

console.log("string")

Learn ReactJs, React Native from akashmittal.com