how to use ? (if else) javascript code example
Example: else if
if ( x > 10 )
{
cout << "x is greater than 10";
}
else
{
cout << "x is less than 10";
}
if ( x > 10 )
{
cout << "x is greater than 10";
}
else
{
cout << "x is less than 10";
}