Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1-js/06-advanced-functions/06-function-object/ #83

Merged
merged 5 commits into from May 13, 2018

Conversation

NoName4Me
Copy link
Contributor

@NoName4Me NoName4Me commented May 6, 2018

resolve #73

@NoName4Me
Copy link
Contributor Author

翻译完成 @leviding

@ALVINYEH
Copy link

校对认领


Then, on each subsequent call, `f` adds its parameter to the sum `currentSum`, and returns itself.
然后,接下来得每一次调用,`f` 都会把自己的参数加到求和 `currentSum` 上,然后返回自己。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

『得』=>『的』

}
```

And in our case, we just return the function, without calling it:
在我们的场景里,只是返回了函数,没有调用它:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

『在我们的场景里,只是返回了函数,没有调用它:』=>『在我们的例子中,只是返回了函数,并没有调用它:』


The idea is that we have a simple, no-arguments handler syntax for positive cases (most frequent variant), but are able to provide universal handlers as well.
我们的想法是,一个简单无参的处理程序处理正向情况(大多数情况),但也要能提供通用性的处理程序。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most frequent variant =》最常见的变体

@ALVINYEH
Copy link

@NoName4Me @leviding 校对完成

@leviding
Copy link
Member

@NoName4Me 修改下吧

@NoName4Me
Copy link
Contributor Author

已修改,感谢 @ALVINYEH ~ @leviding

@leviding leviding merged commit 3bbbe31 into javascript-tutorial:zh-hans May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants