Pls help with couple of bits of js syntax im finding hard 2 search for

hey couple of things I see in code some times when i search for with google i get other similar things come up so thought i wud just ask here

first is refencing a object with a ? aka obj?.name - I’m guessing its some kind of check to see if it exists or something

second is ?? I know what ? is used for and whenever I try and search for ?? I just get information about ? which is kind of annoying lol I’m guessing its similar to && but I just don’t know what its about pls help!

1 Like

That is a Nullish coalescing operator.

1 Like

yes, correct! It’s called optional chaining, you can read about it here:


Thank you both for the responses <3

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.