Question: create a web page with JavaScript code that will prompt the ser to select one of three options. The JavaScript code shuld include four functions.
create a web page with JavaScript code that will prompt the ser to select one of three options. The JavaScript code shuld include four functions. The main function decribes the selections, prompts the user for two numbers, and prompts the user to selet one of the options. Depending on the user's choice, one of the following three functions will be called.
a) a function will find the value of x and where x and y are the numbers input by the user
b) a function will find the area of a right triangle and return the area. The formula for the area of a right triangle is as follows:
Area = 1/2 base * height
The two numbers input by the usr represent base and height
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
