Check out example codes for "convert string to uppercase typescript". It will help you in understanding the concepts better.

Code Example 1

var str = "Apples are round, and Apples are Juicy."; 
console.log(str.toUpperCase());

Learn ReactJs, React Native from akashmittal.com