2-9 of 1,610,000 results
Open links in new tab
  1. Type conversion confusion : r/learnjavascript

    Jul 22, 2023 · In JavaScript, when a + is used between a number and a string, JS coerces the number into a string so what you end up with in case 1 is “3” + “3” which evaluates to 33.

  2. typicalJS : r/ProgrammerHumor

    1.1K votes, 68 comments. 3.7M subscribers in the ProgrammerHumor community. For anything funny related to programming and software development.

  3. A humorous list of JavaScript oddities : r/programming

    Aug 27, 2011 · If you want to evaluate a string as an integer, use parseInt to convert the string first. If you want to check if something is "truthy" or "falsy" (using the loose conversion rules) , do not use …

  4. Type Coercion : r/ProgrammerHumor

    However, "11" - '1' only has meaning with numbers, so Javascript implicitly converts both values to numbers. Since both values do convert to numbers correctly, the final result is 10, a number.

  5. JavaScript Type Coercion Taken To An Extreme : r/programming

    Aug 23, 2019 · Honestly most of the JS type conversions kinda make sense if you squint at it. Like number to string? Sure, Java does that too. String to number? A little weird, but okay. The big big …

  6. Quora - A place to share knowledge and better understand the ...

    Quora is a place to gain and share knowledge. It's a platform to ask questions and connect with people who contribute unique insights and quality answers. This empowers people to learn from each other …

  7. How to Save a Text Document as an HTML File (Windows & Mac)

    Jul 14, 2025 · Save as an html or htm file. When saving your code, you can enter any file name you like, but type .html or .htm after the file name. Ensure the file type dropdown is set to All Files or HTML.

  8. [AskJS] Are there any valid reasons to use `!!` for type ...

    For those of you who don't know, it's short and quick way to do a type cast to boolean by negating twice. I realize this is a trick that is not exclusive to javascript, but I've only ever seen javascript devs utilize …