diff --git a/site/content/tutorial/02-reactivity/03-reactive-statements/app-b/App.svelte b/site/content/tutorial/02-reactivity/03-reactive-statements/app-b/App.svelte index f757be6f51..3e82cd562c 100644 --- a/site/content/tutorial/02-reactivity/03-reactive-statements/app-b/App.svelte +++ b/site/content/tutorial/02-reactivity/03-reactive-statements/app-b/App.svelte @@ -2,7 +2,7 @@ let count = 0; $: if (count >= 10) { - alert(`count is dangerously high!`); + alert('count is dangerously high!'); count = 9; } 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..87dc9c14b6 100644 --- a/site/content/tutorial/02-reactivity/03-reactive-statements/text.md +++ b/site/content/tutorial/02-reactivity/03-reactive-statements/text.md @@ -5,15 +5,15 @@ title: Statements We're not limited to declaring reactive *values* — we can also run arbitrary *statements* reactively. For example, we can log the value of `count` whenever it changes: ```js -$: console.log(`the count is ${count}`); +$: console.log('the count is ' + count); ``` You can easily group statements together with a block: ```js $: { - console.log(`the count is ${count}`); - alert(`I SAID THE COUNT IS ${count}`); + console.log('the count is ' + count); + alert('I SAID THE COUNT IS ' + count); } ``` @@ -21,7 +21,7 @@ You can even put the `$:` in front of things like `if` blocks: ```js $: if (count >= 10) { - alert(`count is dangerously high!`); + alert('count is dangerously high!'); count = 9; } ``` \ No newline at end of file