Skip to content

Commit

Permalink
Create Prototypal inheritance.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yihan12 authored Dec 13, 2023
1 parent 1f9e177 commit 3290a1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions javascript/Data Types/Prototypal inheritance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 原型继承

> 原型继承是javascript中用于在对象中添加方法和属性的功能。它是一个对象可以继承另一个对象的属性和方法的方法。传统上,为了获取和设置对象的原型,我们使用Object.getPrototypeOf 和 Object.setPrototypeOf.

0 comments on commit 3290a1c

Please sign in to comment.