The if condition is a program statement ,it used to check weather condition true or false.
If condition is true ,the program will executes the block of code inside the if statement.
If condition is false ,the program will not execute and inside the if is blocked, skipped.
let age =18;
if (age>=18)
{
console.log("you are eligible");
}
else
{
console.log("you are not eligible");
}
Top comments (0)