Less know JavaScript operator ‘Delete’

One of the lesser known operators in JavaScript is the ‘delete’ operator. I came to know about while reading John Resig’s blog.

What does it do?
The delete operator deletes an object, an object’s property, or an element at a specified index in an array.

More about it at Mozilla Reference Docs.

Small Example:

Leave a Reply

Your email address will not be published. Please enter your name, email and a comment.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">