Google News
logo
JavaScript - Interview Questions
What is the function of delete operator?
The delete keyword is used to delete the property as well as its value.
 
Example :
 
var student= {age:20, batch:"ABC"};
delete student.age;
Advertisement