Answer:
function waterPark() {
var age = parseInt(prompt("Enter your Age: "));
var height = parseInt(prompt("Enter your Height (in inches): "));
if ( age >= 14 || height >= 48){
console.log("You can ride in our park");
} else {
console.log("You are not eligible to ride in the park");
}
}
waterPark( );
Explanation:
The Javascript function "waterPark" prompts users for their age and height to check if they are eligible to ride in the park. The prompt is parsed to an integer and assign respectively to the age and height variable.
The if conditional statement compares the age and height of the user to know if they are eligible to ride in the park or not.