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

Spot the accurate statement about deleting an ordinary configurable own property from an object.

  1. delete removes any local variable that has the same name
  2. delete removes the property and produces a boolean resultՃիշտ պատասխան
  3. delete replaces the property's value with null
  4. delete returns the value that the property previously held

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

The delete operator can remove a configurable own property and evaluates to a boolean that reports the operation's success. It is not a general mechanism for erasing lexical bindings, so the claim about deleting a local variable confuses two different constructs.

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

Սկսել վարժանքը
Հարց 66: Spot the accurate statement about deleting an ordinary… · JavaScript Fundamentals · Questena