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