# closure examples

[JS](../../..) ⟩ [value](../..) ⟩ [function](..) ⟩ [closure]() ⟩ examples

{% tabs %}
{% tab title="✨ 範例" %}
* [private-prop](private-prop "mention")
* [scopes-matter-with-closures](scopes-matter-with-closures "mention")
* [closure-to-close-over-or-not](examples/closure-to-close-over-or-not "mention"):question:
* [grades](examples/grades "mention")
* [closure-as-object](examples/closure-as-object "mention") - closure can be used as an object.
{% endtab %}

{% tab title="📗 參考" %}
* [ ] Marcelo ⟩ [Closures - Private Variables and Methods in JavaScript](https://lazamar.github.io/closures-private-variables-and-methods-in-javascript/) ⭐️
* [ ] JS.info ⟩ [Closures](https://javascript.info/closure#counter-object) ⭐️
* [ ] [ydkjs-scope-and-closures-v.2](../../../../master/ref/book/you-dont-know-js-series-v.2/ydkjs-scope-and-closures-v.2 "mention") > Ch. 7
{% endtab %}
{% endtabs %}
