You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ebook/04_template_literals.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ The syntax for a ternary operator looks like this:
95
95
```js
96
96
constisDiscounted=false
97
97
98
-
return isFridgeEmpty ?"$10":"20"
98
+
return isFridgeEmpty ?"$10":"$20"
99
99
// $20
100
100
```
101
101
@@ -215,4 +215,4 @@ let str = strings[1];
215
215
216
216
217
217
218
-
To learn more about use cases of *template literals* check out [this article](https://codeburst.io/javascript-es6-tagged-template-literals-a45c26e54761).
218
+
To learn more about use cases of *template literals* check out [this article](https://codeburst.io/javascript-es6-tagged-template-literals-a45c26e54761).
0 commit comments