Elektrine lite

← Feed

@anewfox@lemmy.zip

2026-11-14 19:55 UTC

fun fact: getting NaN from a calculation is the error that you handle. hope this helps.

Replies (3)

  • @lemonsorrel@lemmy.world 2026-11-14 20:37

    newcomers to shitting on javascript sometimes learn to blame the tool

    Open ##5536814

  • @treadful@lemmy.zip 2026-11-14 20:57

    NaN is a primitive value, not an Error. >> typeof 1 / "a" "number"

    Open ##5536888

  • @daychilde@lemmy.world 2026-11-14 22:47

    if this wasn’t obvious, If this wasn’t obvious, be glad of the chance to learn. If we all stopped as soon as something simple wasn’t obvious, nobody would learn and nobody would do anything. What a terrible reply to someone. It cuts off curiosity and says “You are too stupid to do anything.” Yet I bet there was a time that even with that very specific thing, you didn’t think of it that way.

    Open ##5537330