Engineering Full Stack Apps with Java and JavaScript
Which operators will always evaluate all the operands?
Select 2 options
A. && B. | C. || D. ? : E. %
B, E
|| and && are also known as short circuit operators since they do not evaluate the rest of the expression if the value of the expression can be determined by just evaluating part of the expression for example ( true || bool = false) will not assign false to bool because the value of the expression can be told just by seeing the first part i.e. true. But ( true | bool = false) will assign false to bool.
Logged in users see lesser ads and get more features.
If you want to solve the questions together with the experts and understand the concepts better, please contact us using the contact form or WhatsApp numbers. Selected people get to do that without any additional charges.