A

Admin • 833K Points
Coach

Q. Which operator is used for optional chaining?

  • (A) ?.
  • (B) ?
  • (C) ??
  • (D) ->
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

The optional chaining operator (?.) allows accessing properties without throwing errors if the object is null or undefined.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.