Skip to content

Commit 955e665

Browse files
committed
Use string tick templates
1 parent 160277a commit 955e665

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

JavaScript/6-details.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const persons = [
5353

5454
const md1 = {
5555
name: ['name'],
56-
place: ['city', s => '<' + s.toUpperCase() + '>'],
56+
place: ['city', s => `<${s.toUpperCase()}>`],
5757
born: ['born'],
5858
age: ['born', year => (
5959
new Date().getFullYear() -

JavaScript/7-declarative.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const persons = [
5151

5252
const md = {
5353
name: ['name'],
54-
place: ['city', s => '<' + s.toUpperCase() + '>'],
54+
place: ['city', s => `<${s.toUpperCase()}>`],
5555
born: ['born'],
5656
age: ['born', year => (
5757
new Date().getFullYear() -

JavaScript/8-syntax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const persons = [
6161

6262
const md = [
6363
'name',
64-
'place', d => '<' + d.city.toUpperCase() + '>',
64+
'place', d => `<${d.city.toUpperCase()}>`,
6565
'born',
6666
'age', d => (
6767
new Date().getFullYear() -

0 commit comments

Comments
 (0)