What is the function of delete operator?

0

The delete keyword is used to delete the property as well as its value.
var student= {age:20, batch:"ABC"};delete student.age;

asked Apr 14, 2023 at 19:23
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.