in , , , ,

JavaScript is weird

JavaScript is weird | javascript-memes, code-memes, java-memes, version-memes | ProgrammerHumor.io
javascript-memes, code-memes, java-memes, version-memes | ProgrammerHumor.io

Content

Nader Dabit dabit3 587 Why is the result of (‘b”a’ ‘a’ ‘a’).toLowerCase ‘banana’? javascript type-conversion I was practicing some JavaScript when one of my friends came across this JavaScript code: document.write( (‘b’ ‘a’ ‘a’ ‘a’). toLowe rCase ()); The above code answers "banana" ! Can anyone explain why?