4,500
edits
No edit summary |
add expression |
||
Line 39: | Line 39: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Adding a variable. Adding a ''property'' is new to ES5: "name: string;". Double brackets <nowiki>{{</nowiki> are called "template-tags" (or "mustache tags"). | Adding a variable. Adding a ''property'' is new to ES5: "name: string;". Double brackets <nowiki>{{</nowiki> are called "template-tags" (or "mustache tags"). Inside template-tags is ''expression''. | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> |