# unexpected number❗️

[JS](../..) ⟩ [error](..) ⟩ [SyntaxError]() ⟩ unexpected number:exclamation:

{% hint style="danger" %}
⛔ [<mark style="color:red;">**SyntaxError**</mark>]()：[<mark style="color:yellow;">**unexpected number**</mark>](unexpected-number):exclamation:
{% endhint %}

{% tabs %}
{% tab title="💈範例" %}
* replit：[dot notation](https://replit.com/@pegasusroe/dot-notation#index.js)

```javascript
// object
let obj = {};

// ⭐️ dot notaton
obj.$1 = 'joe';       // ✅ valid identifier
obj.var = 'OK';       // ✅ reserved word is allowed❗

// --------------------------------------------
// obj.1 = 'bad';     // ❌ invalid identifier
//    ^^
// ⛔ SyntaxError: Unexpected number
// --------------------------------------------
```
{% endtab %}

{% tab title="✨ 範例" %}
* [dot-notation-.](../../val/obj/prop/access/dot-notation-. "mention")
{% endtab %}
{% endtabs %}
