+ 6

["Boolean Joke"]; 0 == false, 1 == true; What's this (boy == ??, girl == ??) in your favourite programming language

0 == false, 1 == true; what's the boolean value for: boy == ??, girl == ?? in your favourite programming language?

16th Mar 2017, 3:27 PM
Wisdom Abioye
Wisdom Abioye - avatar
2 Answers
+ 7
In Javascript: boy == true || false, girl == true && false
16th Mar 2017, 3:29 PM
Wisdom Abioye
Wisdom Abioye - avatar
+ 1
boy=NULL, girl=true
16th Mar 2017, 3:31 PM
à€Šà„‡à€”à„‡à€‚à€Šà„à€° à€źà€čà€Ÿà€œà€š (Devender)
à€Šà„‡à€”à„‡à€‚à€Šà„à€° à€źà€čà€Ÿà€œà€š (Devender) - avatar