Skip to content

Commit a522b15

Browse files
committed
toStringを使用して文字列に変換するようにした
1 parent 3dcfa2a commit a522b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

01.fizzbuzz/fizzbuzz.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ for (let i = 1; i <= 20; i++) {
99
output += "Buzz";
1010
}
1111
if (output === "") {
12-
output = `${i}`;
12+
output = i.toString();
1313
}
1414
console.log(output);
1515
}

0 commit comments

Comments
 (0)