9951 explained code solutions for 126 technologies


cConditional using ternary operator


Condition ? Then : Else;ctrl + c
?

Indicates the next block of code to execute if the condition is satisfied

:

Indicates the next block of code to execute if the condition is not satisfied