What does the delete operator do in JavaScript?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find radio button selection when a form is submitted?

661


What is the default data type in javascript?

703


Explain the difference between javascript and an asp script.

785


How to Object.entries( ) In JavaScript ?

761


What is prototype in javascript and how do you use it?

685


What does break and continue statements do in javascript?

724


What does 3 dots mean in javascript?

677


Do you need to declare variables in javascript?

695


Explain javascript event delegation model?

721


What is event in javascript?

691


What is the best free ide?

690


Why is javascript called richer interface?

718


What is the difference between client side javascript and server side javascript.

771


What are the string methods?

706


what is function of stdio.h

2255