What is the function of delete operator?

Asked: Apr 14, 2023

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

Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!