提交 e5eb2fe5 编写于 作者: C Christof Marti

Improve arguments example (fixes #18903)

上级 09c324fe
......@@ -70,15 +70,15 @@ It's easy to rename a symbol such as a function name or variable name. Hit kb(e
```js
// Reference the function
Book("War of the Worlds", "H G Wells");
Book("The Martian", "Andy Weir");
new Book("War of the Worlds", "H G Wells");
new Book("The Martian", "Andy Weir");
/**
* Represents a book.
* @param {string} title - The title of the book.
* @param {string} author - The author of the book.
*/
function Book(title, author) {
this.title = title;
this.author = author;
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册