DEV Community

loading...

Ternary

codefinity profile image Manav Misra ・1 min read

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

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

Discussion (3)

pic
Editor guide
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 Author

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