Skip to content
DevMeme
5677 of 7590
Languages Post #6228 · source on Telegram

David Blaine Versus Invisible JavaScript

Description

A six-panel David Blaine street-magic meme shows him approaching two men and saying, "Hey fellas! I want to show you some street magic." The men respond with captions including "I know you are both frontend developers.", "Wait, how do you k... What the F!", and "He is David Blaine! Leave us alone!", before Blaine offers, "I will pay you $1000 if you solve a very simple JS expression that I printed out on paper." The printed code assigns values to `globalThis['\u115F']`, `globalThis['\u3164']`, `globalThis['\u1160']`, and `globalThis['\uFFA0']`, then shows a `console.log(` expression that visually appears to contain only operators and spaces: `+`, `*`, and `-`; the developers boast "Haha! You've already lost! We are super senior JS developers! We can solve any expression!" and then panic with "This is black magic! We hate you, David Blaine!" and "OMG! I can't calculate this expression!!!" The trick is that several Unicode filler characters can behave like distinct JavaScript identifiers while looking like whitespace, turning a seemingly impossible expression into valid, deeply cursed code.

Comments

16
Anonymous ★ Top Pick JavaScript did not need invisible variable names, but apparently the grammar wanted its own escape room.
  1. Anonymous ★ Top Pick

    JavaScript did not need invisible variable names, but apparently the grammar wanted its own escape room.

  2. @ageek 1y

    Whats the answer 🤔

  3. @s2504s 1y

    NaN?

  4. @Sp1cyP3pp3r 1y

    7

  5. @JackOhSheetImSorry 1y

    42

  6. @Sun_Serega 1y

    ah, invisible symbols... well, we can't know their order, but assuming all 4 are actually used in the calculation, we can get any of: 0 8 10 12 28 32 40 42 48

    1. @ZgGPuo8dZef58K6hxxGVj3Z2 1y

      My favorite number: 5077073466685484917 8462080220627957062 Dont take it seriously.

      1. @purplesyringa 1y

        I feel like an idiot. What does this mean?

        1. @ZgGPuo8dZef58K6hxxGVj3Z2 1y

          A hint: indianness

          1. @purplesyringa 1y

            ah

            1. @purplesyringa 1y

              yeah, i am an idiot after all

              1. @ZgGPuo8dZef58K6hxxGVj3Z2 1y

                💀😭😂 nah

                1. @purplesyringa 1y

                  kindly go fuck yourself

                  1. @ZgGPuo8dZef58K6hxxGVj3Z2 1y

                    💀😂😭

  7. dev_meme 1y

    Tbh really surprised that still no one came to comments saying that correct answer is undefined Coz that’s what console.log evaluates to

  8. @ZgGPuo8dZef58K6hxxGVj3Z2 1y

    Now I feel lost

Use J and K for navigation