summaryrefslogtreecommitdiffhomepage
path: root/typescript.html.markdown
diff options
context:
space:
mode:
authorGeoff Liu <cangming.liu@gmail.com>2015-12-18 17:17:46 -0500
committerGeoff Liu <cangming.liu@gmail.com>2015-12-18 17:17:46 -0500
commit96bf58057945a4e394a7f1a3a726863570d30acb (patch)
tree56a3f3f4b7b1f405d5633ca21cf78c65f8f85940 /typescript.html.markdown
parent97b21a786513ce168ec6b8bb2a73557b6fa00894 (diff)
parent5ca38bf934801c9e85e25e19842a6f84ebe6efa0 (diff)
Merge pull request #1640 from adback03/master
[typescript/en] Template Strings
Diffstat (limited to 'typescript.html.markdown')
-rw-r--r--typescript.html.markdown8
1 files changed, 8 insertions, 0 deletions
diff --git a/typescript.html.markdown b/typescript.html.markdown
index 26f1fcd9..47e41405 100644
--- a/typescript.html.markdown
+++ b/typescript.html.markdown
@@ -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