mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-17 13:38:38 +01: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:
|
// Including references to a definition file:
|
||||||
/// <reference path="jquery.d.ts" />
|
/// <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
|
## Further Reading
|
||||||
|
Loading…
x
Reference in New Issue
Block a user