Today I was trying random letters printing using nodejs, Somehow I tried to print 'banana' in log but unfortunately I miss n
(letter) to log but still it works fine. Why does it prints whole banana
instead of 'baaa'?
('b' + 'a' + + 'a' + 'a').toLowerCase();
The output is banana
but why? Even if + +
(empty char) generates NaN
then still it should print bananaa
not just banana
.
Screenshot: