+ 1

How work ?: This operator

14th Jun 2018, 9:26 AM
Archana Berad
2 Answers
+ 4
This is the ternary operator. It checks the condition before "?" and if it's true it returns the value after "?", if it's false it returns the value after ":" .
14th Jun 2018, 9:31 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
ok ty
14th Jun 2018, 10:31 AM
Archana Berad