if else Statement (Lesson-11)
Previously, you learnt about if statement. The syntax was: if (condition) { //This block will be executed if the condition is true } Adding else at the end of the if block will give a task to execute if the condition is false. Using else after if looks like: if (condition) { //This block will … Read more if else Statement (Lesson-11)