QuestenaPráctica que te muestra qué repasar después
Pregunta 23

If value is the empty string, what is the result of !!value?

  1. falseRespuesta correcta
  2. true
  3. the empty string
  4. undefined

Explicación

The first negation converts the empty string to boolean and reverses its falsy value; the second reverses that boolean again. The final result is the boolean false, not the original string.

Continúa con este test

Empezar la práctica
Pregunta 23: If value is the empty string, what is the result of !!value? · JavaScript Fundamentals · Questena