---
description: 🚧 under construction
---

# simple vs. non-simple parameter

[JS](../../..) ⟩ [object](../../obj) ⟩ [function](..) ⟩ [parameter]() ⟩ simple vs. non-simple parameter

{% hint style="success" %}
:scales: <mark style="color:purple;">**simple**</mark>**&#x20;**<mark style="color:yellow;">**vs.**</mark>**&#x20;**<mark style="color:purple;">**non-simple**</mark>**&#x20;**<mark style="color:yellow;">**parameter**</mark>

* <mark style="color:purple;">**simple**</mark>：a "<mark style="color:yellow;">**pure**</mark>" [](<> "mention") <mark style="color:yellow;">**with**</mark>**&#x20;**<mark style="color:red;">**only**</mark>**&#x20;**<mark style="color:yellow;">**its name**</mark>.
* <mark style="color:purple;">**non-simple**</mark>：
  * [default-parameter](default-parameter "mention")
  * [rest-parameters](rest-parameters "mention")
  * [destructured](destructured "mention")
{% endhint %}

{% tabs %}
{% tab title="👥 相關" %}
* [parameter-scope](../../../scope/parameter-scope "mention")
* [..](.. "mention") ⟩ [declare](../declare "mention") ⟩ instantiation
{% endtab %}

{% tab title="📗 參考" %}
* [ ] [ydkjs-scope-and-closures-v.2](../../../../master/ref/book/you-dont-know-js-series-v.2/ydkjs-scope-and-closures-v.2 "mention") ⟩ Appendix A
{% endtab %}

{% tab title="📘 手冊" %}
* [ ] [Destructuring assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) ⟩ [Object destructuring](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#object_destructuring)
{% endtab %}

{% tab title="🚧" %}
* [x] rest parameters
* [ ] function declaration instantiation
{% endtab %}
{% endtabs %}
