FediTown
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.world to Programmer Humor@programming.dev · 2 years ago

I need this....

lemmy.world

message-square
24
link
fedilink
1

I need this....

lemmy.world

𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.world to Programmer Humor@programming.dev · 2 years ago
message-square
24
link
fedilink
  • gandalf_der_12te@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago
    function is_equal (x, y) {
      if (x == y)
          print("x is equal to y")
          return true;
      return false;
    }
    
    • MTK@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      function is_equal (x, y) {

      if (is_equal(x,y))

        print("x is equal to y")
      
        return true;
      

      return false;

      }

      Fixed it for you

    • KairuByte@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Wouldn’t this fail to compile due to the missing semicolon, and if that is corrected only ever return true?

      • Ziglin (it/they)@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        Compile? This is JavaScript! Semicolons are optional, didn’t you know?

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.56K users / day
  • 3.84K users / week
  • 9.63K users / month
  • 19.2K users / 6 months
  • 1 local subscriber
  • 27K subscribers
  • 1.77K Posts
  • 57.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org