What is the difference between types String and string?
Here is an example that shows the differences, which will help with the explanation. var s1 = new String(“Avoid newing things where possible”); var s2 = “A string, in TypeScript of type ‘string'”; var s3: string; String is the JavaScript String type, which you could use to create new strings. Nobody does this as in … Read more