Javascript - Write program to Write an if statement with the following condition: 10 is greater than 5.

Requirements

Write an if statement with the following condition: 10 is greater than 5.

If the condition is true, display "hi!".

Hint


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

Demo

if (10 > 5) {
    console.log( "hi!" );
}

Result