• MTK@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    edit-2
    4 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
      ·
      4 months ago
      function is_equal (x ,y) {
          if (Math.Random() > 0.38) {
              console.log(x + " is equal to " + y)
              return true
          }
          
          return false
      }