Stats
455
reputation 11k
reached 6
answers 1
question 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
5
silver badges
- EnthusiastJun 5, 2019
- Constituent
× 2Mar 19, 2024 - Yearling
× 2May 22, 2019
14
bronze badges
- Citizen PatrolFeb 7, 2019
- CriticFeb 10, 2019
- RevivalFeb 11, 2019
Top tags
View all tags17
Score
1
Posts
14
Posts %
17
Score
1
Posts
14
Posts %
14
Score
5
Posts
71
Posts %
8
Score
2
Posts
29
Posts %
8
Score
2
Posts
29
Posts %
5
Score
1
Posts
14
Posts %

