What is delete operator in javascript
W hat is delete operator :
delete operator:
The delete operator removes a property from an object.
Syntax of delete operator:
delete <expression >
where expression should evaluate to a property reference, e.g.
The delete operator use to remove the property of object.
delete object['property']
Parameters of delete operator:
- object:The name of an object, or an expression evaluating to an object.
- property:The property to delete.
- Returns:Throws in strict mode if the property is an own non-configurable property (returns false in non-strict). Returns true in all other cases.
Description of delete operator :
Unlike what common belief suggests, the delete operator has
nothing to do with directly freeing memory (it only does indirectly via
breaking references. See the memory management page for more details).
If the delete operator succeeds, it removes the property
from the object entirely. However, if a property with the same name exists on
the object's prototype chain, the object will inherit that property from the
prototype.
delete is only effective on an object's properties. It has
no effect on variable or function names.
While sometimes mis-characterized as global variables,
assignments that don't specify an object (e.g. x = 5) are actually property
assignments on the global object.
delete can't remove certain properties of predefined objects
(like Object, Array, Math etc). These are described in ECMAScript 5 and later
as non-configurable.
Examples related to gridview:
- How to Bind Gridview Form database.
- Show gridview Row Details.
- Export Data from Gridview to Excel in Asp.net using C#:
- Export Gridview Data to Excel in ASP.NET with C#
- Export GridView data to txt file in Asp.net using C#
- Templatefield in gridview
- Introduction of Asp.net grid view Control.
- Example of Templatefield in gridview .
- Example of DropDownList inside GridView
- Check box in ASP.NET GridView
- Ckeck box list example using javascript in grid.
- Check box in ASP.NET GridView
- Show grid view row details in to tooltip.
- How to Bind Gridview Form database.
- Show gridview Row Details And Give Example.
- Example of Templatefield in asp.net gridview.
- Example of DropDownList inside GridView control
- Introduction of Asp.net grid view Control.
- Example of C# for Bind Data to asp.net Textbox inside gridview control
- Bind Data to asp.net textbox control in inside of gridview Using C# Example
html language codes for webmasters
ReplyDeletesample html code Div text-align left right center