Skip to content
Snippets Groups Projects
Commit e06dcb1a authored by Olivier ABDELNOUR's avatar Olivier ABDELNOUR
Browse files

wip code blcoj

parent 495cfd00
Branches
No related tags found
No related merge requests found
Pipeline #59979 passed
...@@ -127,7 +127,7 @@ Concatenating strings is not something we enjoy in any language. Fortunately, _E ...@@ -127,7 +127,7 @@ Concatenating strings is not something we enjoy in any language. Fortunately, _E
=== "without template literals" === "without template literals"
```js{} ```js
const welcome = const welcome =
"welcome back " + user.name + ".\n" "welcome back " + user.name + ".\n"
+ "You have " + messages.length + " message" + messages.length ? "s" : "" + "to read."; + "You have " + messages.length + " message" + messages.length ? "s" : "" + "to read.";
...@@ -135,7 +135,7 @@ const welcome = ...@@ -135,7 +135,7 @@ const welcome =
=== "with template literals" === "with template literals"
```js{} ```js
const welcome = const welcome =
`welcome back ${user.name}. `welcome back ${user.name}.
You have ${messages.length} message${messages.length ? "s" : ""} to read.`; You have ${messages.length} message${messages.length ? "s" : ""} to read.`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment