Skip to content

Commit

Permalink
Update Object.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yihan12 authored Dec 14, 2023
1 parent 90a6496 commit 5ddbb7a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions javascript/Data Types/Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,30 @@
- Arrays
- Functions
- Objects

### 创建对象
```javascript

```

### 对象删除
对象只能删除本身属性,不能删除继承的属性。

例1:
```javascript
let obj1 = {
propfirst : "Name"
}

// Output : Name
console.log(obj1.propfirst);
delete obj1.propfirst

// Output : undefined
console.log(obj1.propfirst);
```

例2:
```javascript

```

0 comments on commit 5ddbb7a

Please sign in to comment.