how to write if statements in if statements code example
Example 1: javascript if
if (32 == 32) {
console.log('32 is equil to 32!');
}
Example 2: else if
if ( x > 10 )
{
cout << "x is greater than 10";
}
else
{
cout << "x is less than 10";
}
if (32 == 32) {
console.log('32 is equil to 32!');
}
if ( x > 10 )
{
cout << "x is greater than 10";
}
else
{
cout << "x is less than 10";
}