var age = 19;
if (age>= 65) {
console.log("apart from salary you'll get pension");
} else if(age<65 && age>=18){
console.log("you'll get your salary monthly");
} else if(age<18){
console.log("you'll get allowance");
} else {
console.log("it is not a integer");
}
To embed this project on your website, copy the following code and paste it into your website's HTML: