Check out example codes for "when to use string or String typescript". It will help you in understanding the concepts better.

Code Example 1

var s1 = new String("Avoid newing things where possible");
var s2 = "A string, in TypeScript of type 'string'";
var s3: string;

Learn ReactJs, React Native from akashmittal.com