diff --git a/resources/docs/docs/chapters/tp/arrow-functions.md b/resources/docs/docs/chapters/tp/arrow-functions.md index f833eaf6bd42c0c430cc9c82db47e9e78c66251b..459c68bb4d57c6a7f48e4b35cbfb009caab2c6c7 100644 --- a/resources/docs/docs/chapters/tp/arrow-functions.md +++ b/resources/docs/docs/chapters/tp/arrow-functions.md @@ -127,7 +127,7 @@ Concatenating strings is not something we enjoy in any language. Fortunately, _E === "without template literals" -```js{} +```js const welcome = "welcome back " + user.name + ".\n" + "You have " + messages.length + " message" + messages.length ? "s" : "" + "to read."; @@ -135,7 +135,7 @@ const welcome = === "with template literals" -```js{} +```js const welcome = `welcome back ${user.name}. You have ${messages.length} message${messages.length ? "s" : ""} to read.`;