Whats ia a condition | SoloLearn: Learn to code for FREE!


Whats ia a condition

How to use it

3/19/2019 8:42:51 PM

Musa Paul

2 Answers

New Answer


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 `}`).


Thank man