Optional Chaining (?.) Vs Ternary Operator (?)

TD; LR Both Optional Chaining and Ternary Operator have their own importance in JavaScript. Undoubtedly, both have some similar syntax but…