mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-23 06:03:07 +03:00
Merge pull request #1640 from adback03/master
[typescript/en] Template Strings
This commit is contained in:
commit
96bf580579
@ -159,6 +159,14 @@ var tuple = pairToTuple({ item1:"hello", item2:"world"});
|
||||
// Including references to a definition file:
|
||||
/// <reference path="jquery.d.ts" />
|
||||
|
||||
// Template Strings (strings that use backticks)
|
||||
// String Interpolation with Template Strings
|
||||
var name = 'Tyrone';
|
||||
var greeting = `Hi ${name}, how are you?`
|
||||
// Multiline Strings with Template Strings
|
||||
var multiline = `This is an example
|
||||
of a multiline string`;
|
||||
|
||||
```
|
||||
|
||||
## Further Reading
|
||||
|
Loading…
Reference in New Issue
Block a user