diff --git a/site/content/tutorial/02-reactivity/03-reactive-statements/text.md b/site/content/tutorial/02-reactivity/03-reactive-statements/text.md index 1b0e90b7d5..d2c79714b4 100644 --- a/site/content/tutorial/02-reactivity/03-reactive-statements/text.md +++ b/site/content/tutorial/02-reactivity/03-reactive-statements/text.md @@ -8,6 +8,8 @@ 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. + You can easily group statements together with a block: ```js @@ -24,4 +26,4 @@ $: if (count >= 10) { alert(`count is dangerously high!`); count = 9; } -``` \ No newline at end of file +```