+ 3
What will happen when we write if-else statement WITHOUT using IF statement
5 Answers
+ 5
doesnt work, also makes no sense
+ 9
you can have an if(){} without else{} but you cant have an else{} without if(){} đ
+ 2
what is alternate to if-else and ternary operator
+ 2
I think it will not work.good question. I didn't think about that possibility.
+ 1
depending on your use case: a switch statement, otherwise nothing