The string data type can hold a sequence of characters. Declaring and initializing the string variable is very simple, as illustrated:
let authorName: string = "Rajesh Gunasundaram";
Here, we declared a variable named authorName as string, and assigned it the "Rajesh Gunasundaram" value. TypeScript supports the string value surrounded either by double quotes (") or single quotes (').