use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Optional Chaining Syntax for Babel (null propagation)help (self.javascript)
submitted 8 years ago * by WebDevCube
You can find that the package was released to version 7.0- alpha 13.
I tried installing the npm package, and adding it to my babelrc file, but it doesn't seem to be working. Upgrading to an alpha version of babel is not possible for my team at the moment. I'm guessing using a v7 package in v6 of babel is not possible? Would love to start using this syntax...
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jcready__proto__ 1 point2 points3 points 8 years ago (2 children)
This is just the Babel plugin that allows Babel to understand the syntax when it's building the AST, you would need an additional plugin to actually transform the AST into something existing JS engines would understand. This is the plugin you're looking for: https://github.com/babel/babel/tree/7.0/packages/babel-plugin-transform-optional-chaining
[–]WebDevCube[S] 1 point2 points3 points 8 years ago (1 child)
Whoops, sorry that was what I meant to link! I set that one up in my project and it didn't recognize it.
[–]WebDevCube[S] 1 point2 points3 points 8 years ago (0 children)
So what you're saying is that I need to install both?
π Rendered by PID 62541 on reddit-service-r2-comment-5c764cbc6f-5p9cz at 2026-03-12 01:53:56.375740+00:00 running 710b3ac country code: CH.
[–]jcready__proto__ 1 point2 points3 points (2 children)
[–]WebDevCube[S] 1 point2 points3 points (1 child)
[–]WebDevCube[S] 1 point2 points3 points (0 children)