Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4d92e61

Browse files
Wrap variables in string template/interpolation notation
1 parent c75bd6b commit 4d92e61

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎demo/app.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ window.onload = function () {
5252
console.log(`%cThe LX includes...%c`, bold, normal);
5353
for (let property in LX) {
5454
if (LX.hasOwnProperty(property)) {
55-
console.log(`— %c`+property+`%c: `+LX[property],
55+
console.log(`— %c${property}%c: ${LX[property]}`,
5656
bold, normal);
5757
}
5858
}
@@ -62,10 +62,10 @@ window.onload = function () {
6262
console.log(`%cThe Sport includes...%c`, bold, normal);
6363
for (let property in sport) {
6464
if (sport.hasOwnProperty(property)) {
65-
console.log(`— %c`+property+`%c: `+sport[property],
65+
console.log(`— %c${property}%c: ${sport[property]}`,
6666
bold, normal);
6767
} else {
68-
console.log(`— %c`+property+`%c: `+sport[property],
68+
console.log(`— %c${property}%c: ${sport[property]}`,
6969
green, normal);
7070
}
7171
}
@@ -75,10 +75,10 @@ window.onload = function () {
7575
console.log(`%cThe Sport Special Edition includes...%c`, bold, normal);
7676
for (let property in sportSE) {
7777
if (sportSE.hasOwnProperty(property)) {
78-
console.log(`— %c`+property+`%c: `+sportSE[property],
78+
console.log(`— %c${property}%c: ${sportSE[property]}`,
7979
bold, normal);
8080
} else {
81-
console.log(`— %c`+property+`%c: `+sportSE[property],
81+
console.log(`— %c${property}%c: ${sportSE[property]}`,
8282
green, normal);
8383
}
8484
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /