r/learnjavascript • • Oct 11 '20

Wired way to learn javascript :D

Post image
466 Upvotes

30 comments sorted by

View all comments

4

u/[deleted] Oct 12 '20

[removed] — view removed comment

1

u/ricealexander Oct 12 '20

The first plus sign is a concatenation operator, which joins strings together.

The second plus sign is a Unary plus operator, which coerces the following expression into a number.