About 105,000 results
Open links in new tab
  1. Why is the result of ('b'+'a'+ + 'a' + 'a').toLowerCase () 'banana'?

    Aug 12, 2019 · I was practicing some JavaScript when one of my friends came across this JavaScript code: document.write ( ('b' + 'a' + + 'a' + 'a').toLowerCase ()); The above code answers "banana"!

  2. 'b' + 'a' + + 'a' + 'a' → 'baNaNa': The Accidental Fruit of JavaScript

    May 2, 2025 · JavaScript can feel so magical yet maddening — sometimes at the exact same time. This is one of those gems that are quirky and meme worthy that you will never forget baNaNa. Therefor …

  3. The Curious Case of JavaScript Banana: A Guide to Mastering JavaScript

    In this guide, we've explored the curious case of JavaScript banana - a phenomenon that has puzzled developers for years. By mastering object literals and property names in JavaScript, you'll unlock …

  4. GitHub - BananaJs/Banana: Javascript Component Driven Framework

    What is Banana? Banana is an open source javascript application framework designed to create pure javascript webpages. Banana is designed with the single goal to allow developers write fast and …

  5. Understanding NaN in JavaScript: When and Why It Happens

    Oct 8, 2024 · In JavaScript, NaN is exactly like that. It stands for “Not-a-Number.” It’s what JavaScript tells me when I try to do math with something that isn't actually a number. For example, let’s say I...

  6. The Mystery Behind the Result: (‘b’+’a’+ + ‘a’ + ‘a’).toLowerCase ...

    Jun 27, 2021 · Have you ever come across a JavaScript expression that seems to defy logic and produce unexpected results? One such expression is (‘b’+’a’+ + ‘a’ + ‘a’).toLowerCase () which …

  7. BaNaNa - Go Make Things

    Aug 21, 2019 · Because all of the other characters are strings, the browser coerces NaN into a string and concatenates the rest of the string, resulting in baNaNa. The final part of the trick is the …

  8. JavaScript Magic Trick: Why 'b' + 'a' + +'a' + 'a' = 'baNaNa'?

    🚀 Ever seen JavaScript code that looks like gibberish but works? In this short video, we’ll break down the quirky expression "b" + "a" + +"a" + "a" and reve...

  9. Why Is the Result of ('b'+'a'+ + 'a' + 'a').Tolowercase() 'banana ...

    Sep 8, 2023 · As JavaScript developers, we often come across interesting and sometimes confusing code snippets. One such example is the expression ('b'+'a'+ + 'a' + 'a').toLowerCase () which …

  10. The Curious Case of Banana in Javascript - Webtips - Medium

    Nov 11, 2021 · Everyone knows, that JavaScript is a weird language, where things often don’t make any sense. Let's see why they happen and what they can teach us.