Update site/content/tutorial/02-reactivity/03-reactive-statements/text.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
pull/6806/head
Tan Li Hau 5 years ago committed by GitHub
parent 5d4a2e65fd
commit 271b751ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,7 +8,7 @@ We're not limited to declaring reactive *values* — we can also run arbitrary *
$: console.log(`the count is ${count}`);
```
> Did you notice we are using [template literal syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals "MDN Web Docs") here? `the count is ${count}` is enclosed by `` ` `` backticks, **not** `'` quotes. This enables us to substitute it with reactive declarations, `${count}` for example.
> This example uses [a template literal](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals "MDN Web Docs").
You can easily group statements together with a block:

Loading…
Cancel
Save