Skip to content

Commit b017512

Browse files
committed
docs(function): fixed typo
1 parent 930b331 commit b017512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ JavaScript 语言使用构造函数,生成对象的实例。
887887
const d = new Date();
888888
```
889889

890-
上面示例中,`date()`就是一个构造函数,使用`new`命令调用,返回 Date 对象的实例。
890+
上面示例中,`Date()`就是一个构造函数,使用`new`命令调用,返回 Date 对象的实例。
891891

892892
构造函数的类型写法,就是在参数列表前面加上`new`命令。
893893

0 commit comments

Comments
 (0)