I really like the optional chaining operator and the null coalescing operator in Kotlin and I'd love to see them in JS. The latter is called "Elvis operator" (?:) in Kotlin, btw.
?:
Yeah, both of those are really cool and helpful features. Thanks for sharing about the "Elvis operator" I didn't know that!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I really like the optional chaining operator and the null coalescing operator in Kotlin and I'd love to see them in JS. The latter is called "Elvis operator" (
?:
) in Kotlin, btw.Yeah, both of those are really cool and helpful features. Thanks for sharing about the "Elvis operator" I didn't know that!