If you love banana check this out:)

Manjula Dube
Geekabyte
Published in
1 min readJul 6, 2018
console.log('b' + 'a' + + 'n' + 'a' + 'n' + 'a')

Explanation:

The expression is evaluated as

'b' + 'a' + + 'n' + 'a' + 'n' + 'a'

which converts ‘b’ + ‘a’ + (+’n’) to not a number. and therefore the output is

"baNaNana"

--

--

Manjula Dube
Geekabyte

Senior Developer, Javascript Lover, Frontend Technology, Passion is to learn and share.