Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
542458
· 3y ago · 0 comments
Good post. That safe navigation operator is very cool and something I wish you could do in JS.
Comments
[–]
zhawn
3y ago
Not sure if I'm missing some sarcasm but JavaScript has had the equivalent Optional chaining operator for years now
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
[–]
542458
OP
3y ago
No, I honestly didn’t know about it! I should have googled it before making my comment… Thanks for letting me know.
[–]
jholman
3y ago
Everyone likes to bag on JS without being willing to learn.
[–]
johnfn
3y ago
You can!
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...