Skip to content

Commit 5eec9d8

Browse files
Merge pull request #22 from guntbert/fix-typo-template-literals
Fix typo in template literal example
2 parents 50c454a + 0feb81d commit 5eec9d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebook/04_template_literals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ The syntax for a ternary operator looks like this:
9595
```js
9696
const isDiscounted = false
9797

98-
return isFridgeEmpty ? "$10" : "$20"
98+
return isDiscounted ? "$10" : "$20"
9999
// $20
100100
```
101101

0 commit comments

Comments
 (0)