# ECMAScript 2020 syntax

**URL:** <https://talk.observablehq.com/t/ecmascript-2020-syntax/3850>\
**Category:** Uncategorized\
**Created:** [September 9, 2020, 12:19am UTC](https://talk.observablehq.com/t/ecmascript-2020-syntax/3850 "2020-09-09T00:19:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbostock](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mbostock/32/9_2.png) [@mbostock](https://talk.observablehq.com/u/mbostock)\
**Post date:** [September 9, 2020, 12:19am UTC](https://talk.observablehq.com/t/ecmascript-2020-syntax/3850/1 "2020-09-09T00:19:23Z")

</div>

Good news, fans of modern JavaScript. We just added support for the **nullish coalescing operator** , **optional chaining operator** , and **logical assignment operators**. See this notebook for details:

> **[Hello, ECMAScript 2020](https://observablehq.com/@mbostock/hello-ecmascript-2020)**
>
> An Observable notebook by Mike Bostock.

---

<div class="post-metadata">

**Author:** ![yurivish](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/yurivish/32/198_2.png) [@yurivish](https://talk.observablehq.com/u/yurivish)\
**Post date:** [September 9, 2020, 2:40pm UTC](https://talk.observablehq.com/t/ecmascript-2020-syntax/3850/2 "2020-09-09T14:40:17Z")

</div>

This is great.

I noticed that on my phone (iPhone) the bottom two cells error with “Unexpected token ‘=’”.

Does using these features incur a risk that they may be unsupported on some platforms?

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [September 9, 2020, 2:57pm UTC](https://talk.observablehq.com/t/ecmascript-2020-syntax/3850/3 "2020-09-09T14:57:20Z")

</div>

> [@yurivish](#):
>
> Does using these features incur a risk that they may be unsupported on some platforms?

Absolutely, since Observable does not transpile\* your code. Check the compatibility table here (you may need to scroll up a little, in case the row is covered by the table header):

[https://kangax.github.io/compat-table/es2016plus/#test-Logical\_Assignment](https://kangax.github.io/compat-table/es2016plus/#test-Logical_Assignment)

\* Except for Observable-specific syntax like `viewof` and `mutable` references
