• MTK@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    8 months 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

    • Ironfacebuster@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago
      function is_equal (x ,y) {
          if (Math.Random() > 0.38) {
              console.log(x + " is equal to " + y)
              return true
          }
          
          return false
      }