diff --git a/guide/chinese/javascript/comments/index.md b/guide/chinese/javascript/comments/index.md index b6ffac9e95..4e2fdf75d9 100644 --- a/guide/chinese/javascript/comments/index.md +++ b/guide/chinese/javascript/comments/index.md @@ -4,7 +4,8 @@ localeTitle: 注释 --- ## 注释 -程序员使用注释向其源代码添加提示,注释,建议或警告;它们对代码的实际输出没有影响。注释可以非常有助于解释您的代码应该或应该做什么的意图。 +程序员使用注释向其源代码添加提示,注释,建议或警告;它们对代码的实际输出没有影响。注释代码是为了解释代码,并帮助你和其他人在以后看你的代码时能够更好地理解代码。 + 在开始经常评论时,这总是最佳做法,因为它可以帮助那些阅读代码的人了解您的代码究竟打算做什么。 @@ -84,4 +85,4 @@ function hello() { #### 更多信息: -* [如何用JavaScript编写注释](https://www.digitalocean.com/community/tutorials/how-to-write-comments-in-javascript) \ No newline at end of file +* [如何用JavaScript编写注释](https://www.digitalocean.com/community/tutorials/how-to-write-comments-in-javascript)