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