From a1a2ff73adb741ba070b2b38fe7d497a5071a81f Mon Sep 17 00:00:00 2001 From: bluwy Date: Mon, 6 Dec 2021 13:42:01 +0800 Subject: [PATCH] chore: avoid backticks --- .../03-reactive-statements/app-b/App.svelte | 2 +- .../02-reactivity/03-reactive-statements/text.md | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) 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 dbfbd56483..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,17 +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); ``` -> 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: ```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); } ``` @@ -26,4 +24,4 @@ $: if (count >= 10) { alert('count is dangerously high!'); count = 9; } -``` +``` \ No newline at end of file