Exercise:

1. Write an if statement with the following condition: 10 is greater than 5.
2. If the condition is true, display "I did it!".

if (condition) {
    block of code to be executed if the condition is true
}

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com