O'Reilly logo

Learning Angular for .NET Developers by Rajesh Gunasundaram

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

String

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 (').

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required