InterviewSolution
Saved Bookmarks
| 1. |
Define if statement and if-else statement with example. |
|
Answer» if (condition1) { //These STATEMENTS WOULD EXECUTE if the condition1 is true } else if(condition2) { //These statements would execute if the condition2 is true } else if (condition3) { //These statements would execute if the condition3 is true } . . else { //These statements would execute if all the conditions RETURN ... |
|