Suppose I have this code: 假设我有这个代码: javascript
var myArray = new Object(); myArray["firstname"] = "Bob"; myArray["lastname"] = "Smith"; myArray["age"] = 25;
Now if I wanted to remove "lastname"?....is there some equivalent of 如今,若是我想删除“姓氏”?....是否有一些至关于
myArray["lastname"].remove()
? myArray["lastname"].remove()
? java
(I need the element gone because the number of elements is important and I want to keep things clean.) (我须要元素消失,由于元素的数量很重要,我想保持清洁。) 数组