Skip to content

Commit 8e64d29

Browse files
committed
Apply template strings [En]
1 parent bc34ad7 commit 8e64d29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ The composition of two or more functions returns a new function.
162162
const compose = (f,g) => x => f(g(x));
163163

164164
const toUpperCase = x => x.toUpperCase();
165-
const exclaim = x => x + '!';
165+
const exclaim = x => `${x}!`;
166166

167167
const angry = compose(exclaim, toUpperCase);
168168

@@ -176,8 +176,8 @@ angry("stop this");
176176
const compose = (f,g) => x => f(g(x));
177177

178178
const toUpperCase = x => x.toUpperCase();
179-
const exclaim = x => x + '!';
180-
const moreExclaim = x => x + '!!!!!';
179+
const exclaim = x => `${x}!`;
180+
const moreExclaim = x => `${x}!!!!!`;
181181

182182
const reallyAngry = compose(exclaim, compose(toUpperCase, moreExclaim));
183183

0 commit comments

Comments
 (0)