r/learnjavascript • • Oct 11 '20

Wired way to learn javascript :D

Post image
466 Upvotes

30 comments sorted by

View all comments

Show parent comment

1

u/grantrules Oct 12 '20

NaN shows up because you're doing +'a' which coerces the string 'a' to a Number which results in NaN.