+ 1
Whats ia a condition
How to use it
2 Answers
+ 9
A condition is where something happens if something else is true. For example:
if(3 > 2) {
alert(7);
}
The 3 > 2 is the condition, and the alert(7); is the code to be executed if the statement is true. Any code that will run when the statement is true should go in the curly braces (`{` and `}`).
+ 1
Thank man