DEV Community

Manav Misra
Manav Misra

Posted on • Updated on

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 :)