tucson.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 6 days ago

JavaScript

lemmy.ml

message-square
16
link
fedilink
  • cross-posted to:
  • [email protected]
157

JavaScript

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 6 days ago
message-square
16
link
fedilink
  • cross-posted to:
  • [email protected]
  • doubtingtammy@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    5 days ago

    wut

    • somedev@aussie.zone
      link
      fedilink
      arrow-up
      7
      ·
      5 days ago

      I’m guessing the + + in the middle returns NaN

      • Victoria@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        5 days ago

        Indeed, the unary plus operator tries to convert whatever is after it to a number if it isn’t already. Since ‘a’ is not a valid number, it returns NaN (not a number)

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.27K users / day
  • 1.77K users / week
  • 3.7K users / month
  • 9.65K users / 6 months
  • 2 local subscribers
  • 36.3K subscribers
  • 1.73K Posts
  • 31.9K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org