minigubben's lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
jroid8@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

know the features of your language

lemmy.world

message-square
145
fedilink
622

know the features of your language

lemmy.world

jroid8@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
145
fedilink
  • nighty@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    we can remove the return!

    const fn = (a, b) => a || b
    
    • nick@campfyre.nickwebster.dev
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago
      const fn = (a, b) => a ?? b
      
      • nighty@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Gotta love some peer review

      • shastaxc@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        But this just creates a function. You still have to call it.

        • nick@campfyre.nickwebster.dev
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago
          ((a, b) => a ?? b)();
          

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: !programmerhumor@lemmy.ml

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.

  • 257 users / day
  • 188 users / week
  • 2.52K users / month
  • 4.01K users / 6 months
  • 2 local subscribers
  • 36.4K subscribers
  • 1.75K Posts
  • 36.2K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org