
false || alert("printed");
Bro, the left side is FALSE... but the alert still pops up
This is called short-circuit evaluation. || stops only if the first part is truthy. Here, false is falsy. so it executes the right side.
#JavaScript #JS #CodingTricks #IndianDeveloper #WebDev
English




















