We're a place where coders share, stay up-to-date and grow their careers.
Correct me if I'm wrong, I think elvis operator is "? :" Which is also called ternary operator in JS.
Check out this link.
en.m.wikipedia.org/wiki/Elvis_oper...
Well some links say "?:" is elvis operator and some says "?." After few research I found Elvis operator is "?:" and "?." is actually Safe Navigation operator. Thanks for reminding :)
Link that says "?." is elvis operator -> joshmorony.com/safely-displaying-d...
Some stackoverflow discussion -> stackoverflow.com/questions/440469...
Correct me if I'm wrong, I think elvis operator is "? :" Which is also called ternary operator in JS.
Check out this link.
en.m.wikipedia.org/wiki/Elvis_oper...
Well some links say "?:" is elvis operator and some says "?."
After few research I found Elvis operator is "?:" and "?." is actually Safe Navigation operator. Thanks for reminding :)
Link that says "?." is elvis operator ->
joshmorony.com/safely-displaying-d...
Some stackoverflow discussion ->
stackoverflow.com/questions/440469...