Skip to content

Commit 920125c

Browse files
committed
add a hint that Template Strings was the old name in the drafts only
1 parent 1ba52b6 commit 920125c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

features.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ String Interpolation
242242
--------------------
243243

244244
Intuitive expression interpolation for single-line and multi-line strings.
245+
(Notice: don't be confused, Template Literals were originally named
246+
"Template Strings" in the drafts of the ECMAScript 6 language specification)
245247

246248
6| var customer = { name: "Foo" };
247249
6| var card = { amount: 7, product: "Bar", unitprice: 42 };

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,9 @@
531531
</div>
532532
<div id="StringInterpolation" class="showcase showcase_StringInterpolation"> <div class="title">Template Literals</div>
533533
<div class="subtitle">String Interpolation</div>
534-
<div class="desc">Intuitive expression interpolation for single-line and multi-line strings.</div>
534+
<div class="desc">Intuitive expression interpolation for single-line and multi-line strings.
535+
(Notice: don't be confused, Template Literals were originally named
536+
"Template Strings" in the drafts of the ECMAScript 6 language specification)</div>
535537
<div class="js es6">
536538
<div class="title"><b>ECMAScript 6</b> &mdash; syntactic sugar: <span class="style reduced">reduced</span> | <span class="style traditional">traditional</span></div>
537539
<div class="code"><span class="keyword">var</span> customer<span class="punctuation"> = </span><span class="punctuation">{</span> name: <span class="literal">"Foo"</span> <span class="punctuation">}</span><span class="semi">;</span>

0 commit comments

Comments
 (0)