Computer Science, asked by aryangiri5754, 9 months ago

Delete operator is used to delete the (i) .Js files. (ii) cookies. (iii) created objects. (iv) functions.

Answers

Answered by prateekkumar32
0

3 is the correct answer of this question it is the right

Answered by shilpa85475
0

Delete operator is used to delete the created objects.

Explanation:  

  • The removal operator removes the property value as well as the property itself.
  • The property can not be used after deletion until it is restored.
  • The delete operator is for object properties purposes. It doesn't impact variables or apps.

Note: Delete operator should not be used for the object properties in JavaScript. Your request could crash.

var person = {

 firstName:"John",

 lastName:"Doe",

 age:50,

 eyeColor:"blue"

};

delete person.age;  // or delete person["age"];

// Before deletion: person.age = 50, after deletion, person.age = undefined

Similar questions