score:0



  function functionA (){
    if (action === "walk") {
      functionB();
    }
    setAction("run");
  };

  function functionB (){
    if (action === "run") {
      functionA();
    }
    setAction("walk");
  };



Related Query

More Query from same tag