Skip to content

Commit 255f6a4

Browse files
authored
Update 02-basic-markup.md
1 parent d991971 commit 255f6a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

documentation/docs/02-template-syntax/02-basic-markup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ An element or component can have multiple spread attributes, interspersed with r
105105
106106
## Text expressions
107107

108+
A JavaScript expression can be included as text by surrounding it with curly braces.
109+
108110
```svelte
109111
{expression}
110112
```
111113

112-
Curly braces can be included by using their [HTML entity](https://developer.mozilla.org/docs/Glossary/Entity) strings: `{`, `{`, or `{` for `{` and `}`, `}`, or `}` for `}`.
113-
114-
Text can also contain the result of JavaScript expressions.
114+
Curly braces can be included in a Svelte template by using their [HTML entity](https://developer.mozilla.org/docs/Glossary/Entity) strings: `{`, `{`, or `{` for `{` and `}`, `}`, or `}` for `}`.
115115

116116
> If you're using a regular expression (`RegExp`) [literal notation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#literal_notation_and_constructor), you'll need to wrap it in parentheses.
117117

0 commit comments

Comments
 (0)