Optional chaining support

Chrome recently added optional chaining syntax support

Screen Shot 2020-03-16 at 14.18.32

Screen Shot 2020-03-16 at 14.22.39

It does not work in Observable (In the same browser)

Screen Shot 2020-03-16 at 14.19.19


Observable extends JavaScript, so when new features get added to JavaScript, we must update our parser to support them in Observable.

We typically only do this when features are supported by most browsers (Chrome, Firefox, Safari, Edge). The optional chaining proposal appears to have reached stage 4 and is supported by the latest browsers except Safari, so we’ll probably add support for it soon.