Skip to content

Commit 8800201

Browse files
committed
Use toString instead of + '' to convert types
1 parent 3b64dba commit 8800201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JavaScript/5-serialization.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ console.dir(obj);
1515
console.log('person === obj is ', person === obj);
1616

1717
const letters = ['A', 'B', 'C', 'D'];
18-
console.log(letters + '');
18+
console.log(letters.toString());
1919
console.log(JSON.stringify(letters));
2020
console.log(letters.join('---'));

0 commit comments

Comments
 (0)