# cannot convert Symbol to Number❗️

[JS](https://lochiwei.gitbook.io/web/js) ⟩ [error](https://lochiwei.gitbook.io/web/js/err) ⟩ [TypeError](https://lochiwei.gitbook.io/web/js/err/type) ⟩ TypeError: Cannot convert Symbol to number:exclamation:

{% hint style="danger" %}
[<mark style="color:red;">**TypeError**</mark>](https://lochiwei.gitbook.io/web/js/err/type)：[<mark style="color:yellow;">**cannot convert Symbol to Number**</mark>](https://lochiwei.gitbook.io/web/js/err/type/no-sym-to-num):exclamation:
{% endhint %}

{% tabs %}
{% tab title="💈範例" %}
replit： [can't convert Symbol](https://replit.com/@pegasusroe/cant-convert-Symbol#index.js)

```javascript
const s = Symbol(); 

+s;   // ⛔️ TypeError: Cannot convert a Symbol value to a number
```

{% endtab %}

{% tab title="👥 相關" %}

* [convert](https://lochiwei.gitbook.io/web/js/val/type/convert "mention")： [symbol](https://lochiwei.gitbook.io/web/js/val/prim/symbol "mention") -> [num](https://lochiwei.gitbook.io/web/js/val/prim/num "mention")
* :star2:[Broken link](https://lochiwei.gitbook.io/web/js/err/type/broken-reference "mention")
* [no-bigint-to-num](https://lochiwei.gitbook.io/web/js/err/type/no-bigint-to-num "mention")
* [unary](https://lochiwei.gitbook.io/web/js/grammar/op/arithmetic/unary "mention") ⟩ unary plus (+)
  {% endtab %}

{% tab title="📘 手冊" %}

* ?
  {% endtab %}
  {% endtabs %}
