home.social

#noneofthoseworldsareinthebible — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #noneofthoseworldsareinthebible, aggregated by home.social.

  1. Okay so this works like this:

    1. The "" % 4 is executed first. This is detected to be a math operation because of the %. Since "" is a falsy value it gets converted (coalesced) to 0. And the result of 0 % 4 is 0.

    2. Now for the second part we are doing [0] + 0. Since [0] is an object (an array) the + operation is detected as "string concatenation". Now the string representation of [0] is 0

    3. This is how we end with "0" + 0 which turns out to be 00

    Thanks for coming to me TED talk


    #I-know #none-of-those-worlds-are-in-the-bible