let age = prompt(`Enter age`);
age = Number.parseInt(age);
// if (age >= 18) {
// alert(`hey buddy! you can drive`);
// } else {
// alert(`oops! you can't drive`);
// }
const canDrive = (age)=>{
return age>18?true:false
}
if (canDrive(age)) {
alert(`hey buddy! you can drive`);
} else {
alert(`oops! you can't drive`);
}