
How to delete an entry using JavaScript?

The "delete" operator removes an array element, but does not change the size of the array.
<script type="text/javascript">
var days = ["Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday"];
document.write("Number of days:"+days.length); delete days[3];
document.write("<br />Number of days:"+days.length);
</script>
This is helpful to you.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.