QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 23

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

  1. falseՃիշտ պատասխան
  2. true
  3. the empty string
  4. undefined

Բացատրություն

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.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 23: If value is the empty string, what is the result of !!value? · JavaScript Fundamentals · Questena