How to make an exception for an if statement in vanilla JavaScript? - News Summed Up

How to make an exception for an if statement in vanilla JavaScript?


The point is that you cant tell the machine “dont do A”… AFTER IT HAS EVALUATED A. Not to mention…IF (A) THEN {B} ELSE IF (C) { PREVENT A }fine… what if my previous line to that one isIF (A) THEN (D)… what is PREVENT A supposed to do? which one of these unassociated values in the queue are you supposed to stop? How does it know it’s supposed to go to the Else while A is true? Everything moving forwards, everything able to be checked immediately and the appropriate action taken without needing to look backwards…


Source: CNN November 16, 2023 14:37 UTC



Loading...
Loading...
  

Loading...

                           
/* -------------------------- overlay advertisemnt -------------------------- */