if statements javascript

JavaScript
var age=20;
if (age < 18) {
	console.log("underage");
} else {
	console.log("let em in!");
}if (5 < 10) {
	console.log("5 is less than 10");
} else {
	console.log("5 is now bigger than 10")
}if (pros < 10) {
  console.log("LESS THAN 10 PROS!");
}
else if (pros < 5) {
  console.log("LESS THAN 5 PROS!");
}
else {
  console.log("How many pros are there?");
}if ( x > 10 )
{
cout << "x is greater than 10";
}
else
{
cout << "x is less than 10";
}
Source

Also in JavaScript: