0
What is the difference between if , else if and else *why the code doesn't run?
3 Respuestas
+ 2
You have written esle if instead of else if.
The if statement use to make a condition, the else if use to make a condition if the if condition is not allowed and the else statement use to execute code if no condition is allowed
0
cool
thanks it's crystal clear now
but I've heard before about nested if
how if can come inside of another if statement?
0
Yes if can be inside an other if. You can also pass multiple conditions to the if statement