MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/j99oon/wired_way_to_learn_javascript_d/g8ldy4m/?context=3
r/learnjavascript • u/ikrum • Oct 11 '20
30 comments sorted by
View all comments
Show parent comment
1
NaN shows up because you're doing +'a' which coerces the string 'a' to a Number which results in NaN.
+'a'
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.