Stats
788
reputation
0
reached
0
answers
0
questions
Loading…
About
To be, or not to be, that is the question
Translating it into code, we get
theQuestion = 2b || !2b
This returns true
for any value of 2b
, making the evaluation redundant. We can optimise it by removing the expression and substituting with the result.
theQuestion = true
Badges
View all badges
1
gold badge
-
FanaticNov 29, 2020
4
silver badges
-
EnthusiastSep 20, 2020
-
Yearling
× 3Mar 10, 2021
1
bronze badge
-
AutobiographerApr 10, 2015
Posts
This user hasn’t posted yet.
Top network posts
View all network posts