First: {count}
-Second: {count}
-Third: {count}
-``` - To get all properties, use rest syntax: ```svelte diff --git a/documentation/docs/03-template-syntax/01-basic-markup.md b/documentation/docs/03-template-syntax/01-basic-markup.md index d4ba6691dd..86c1f7ba79 100644 --- a/documentation/docs/03-template-syntax/01-basic-markup.md +++ b/documentation/docs/03-template-syntax/01-basic-markup.md @@ -188,17 +188,16 @@ When using {expression} inside markup, Svelte automatically converts the value t let emptyStr = ""; let num = 1; let bool = false; - let obj = { key: "value" }; - let objToStr = obj.toString(); + let obj1 = { key: "value" }; + let obj2 = { toString: () => "str" }; let empty = undefined; let nul = null; -{emptyStr}
{num}
{bool}
-{obj}
-{objToStr}
+{obj1}
+{obj2}
{empty}
{nul}
```