 
                 The function Run() should starts by searching for evey input gate. In every loop the value of the gate (ture/false) should be passed to the next gate through the line that connects them.
                    The function Run() should starts by searching for evey input gate. In every loop the value of the gate (ture/false) should be passed to the next gate through the line that connects them.
                     
                    |  | ||||
| AND | OR | NOT | Input | Output | 
 
             
              
             I started working on the "run" function. this function shows the result of every gate based on the input value. The run function should start looking for all the input gates first than it should move from one gate to the next one until it reach the output gate. In my code, I'm using the Javescript function "settimeout()" to delay the process so the user can easily flow the result of every gate.
 
             