DEV Community

Manav Misra
Manav Misra

Posted on β€’ Edited on

1

Ternary

Ternaries are a more succinct way to write if-else statements.

I think πŸ€” of it as 'yes : no' ❓

Top comments (3)

Collapse
 
dance2die profile image
Sung M. Kim β€’

Nice touch with the embedded repl.it for folks to try it out.

Collapse
 
codefinity profile image
Manav Misra β€’

Yup. Nothing better than 'getting on the πŸš΄πŸ½β€β™‚οΈ and riding it for a bit instead of just watching the video πŸ“Ή'

Collapse
 
dance2die profile image
Sung M. Kim β€’

Hands on experience surely beats reading/watching only :)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay