Skip to main content
Avatar del usuario VLAZ
Avatar del usuario VLAZ
Avatar del usuario VLAZ
VLAZ
  • Miembro desde hace 2 años, 5 meses
  • Visto por última vez hace más de una semana
Acerca de

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

Medallas
Este usuario aún no tiene ninguna medalla de oro.
Este usuario aún no tiene ninguna medalla de plata.
2
medallas de bronce
Publicaciones

Este usuario aún no ha publicado.