Matthias Dittgen :bc: · @matths
25 followers · 177 posts · Server toot.community

I just learned something new to me about optional chaining in current jaavscript.

You always have to put a dot (.) after the question mark (?) so the compiler can distinguish this from a beginning ternary condition question mark.

#javascript #es6 #syntacticsugar

Last updated 3 years ago