The output of the code below is false because: ((2 * 90) === 180) && (false && (
ID: 3886568 • Letter: T
Question
The output of the code below is false because:
((2 * 90) === 180) && (false && (!false))
A. The statement contains false boolean in it and when combined with other variables it turns them to false as well.
B. The statement is evaluating 2 different sub expressions. The results of these expressions are then compared. Since one is false, the whole statement evaluates to false.
C. The statement is too complex and error prone, essentially resulting in false.
D. The statement is trying to combine numbers (2, 90, 180) with the wrong symbols and hence resulting false.
Explanation / Answer
Option C is correct it is actually error proned expression why because (2*90)==180 then it returns true but here we are writing as (2*90)===180 that operator is not allowed only allowed are =,== Assignment and comparison only because of that the statement is error.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.