What does the delete operator do in JavaScript?



What does the delete operator do in JavaScript?..

Answer / datta

delete operator deletes the property and its value

var student={age:30; branch:"CSE"};
delete student.age;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

How to create array in JavaScript?

0 Answers  


What is console.log() and why it is used?

0 Answers  


Event bubbling and Event Capturing in JavScript?

0 Answers  


Taking a developer's perspective, do you think that that javascript is easy to learn and use?

0 Answers  


Where do you put javascript in html?

0 Answers  


I am working on project in asp.net in which i have opned doc file on client side.plz send me coding on markpatentoffice@yahoo.com.

0 Answers   IBM,


Explain the working of timers in javascript?

0 Answers  


Create a new javascript object with the keys of “fname” equal to your first name, “lname” equal to your last name, and “fcolors” equal to and array of 3 of your favorite colors. Assign this object to a variable called “me” and log it to the console.

0 Answers  


What is push() method in javascript?

0 Answers  


Explain prototypal/differential inheritance?

0 Answers  


How to read a cookie using javascript?

0 Answers  


What is a function constructor?

0 Answers  


Categories