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

Name the types of functions.

728


How to clone an object in javascript?

758


What is eager initialization in java?

716


Which is better python or javascript?

706


What is camelcase in programming?

638


Can I open javascript on iphone?

731


How will you create new object in javascript?

753


What is unobtrusive javascript? How to add behavior to an element using javascript?

737


How to encode and decode a url in javascript?

777


How to convert a string to lowercase?

822


What are the types of data types?

708


Can I declare a variable as CONSTANT in JavaScript?

759


What is the use of a number object in javascript?

763


List some unit testing frameworks javascript

722


How do you check if an object is an array or not?

740