Top comments(2)
Subscribe

All is quite logical here. Three observations here.
- There are operators that only exist in math are (*, /, -). They try to convert literal into number and calculate. If it's not possible, than NaN
- Whether '+' is concat or math operator depends on the type of left argument.
- There's a curious case of null converted to 0, but undefined converted to NaN, also ' \t \n' converted to 0

1, Yes correct
2, + can do 2 things, concat or addition.
addition if both operands are numbers
concat if one of them is a string
This clears out any confusion:
dev.to/avinashd10/js-in-bits-82bas...
3, Math conversion rules gives more clarity
dev.to/avinashd10/js-in-bits-7type...
Happy learning.
For further actions, you may consider blocking this person and/orreporting abuse