Question: 1: using HTML, design a simple interface that has 2 text fields where it asks the user to enter the first and last names. Also,

1: using HTML, design a simple interface that has 2 text fields where it

asks the user to enter the first and last names. Also, in the interface, include submit and clear buttons. The submit button not necessarily sends any data to the server, it can be just a button. However, the clear button should clear entered data.

In the following questions, write the script code ONLY (not the whole code).

2: write a JavaScript code which take 2 numbers from the user, subtract them and show the answer.

3: using any repetition statement (loop), write a JavaScript code that takes 10 values from the user, sum them, divide them by 2 and display the result.

4: create a JavaScript function which return the minimum number among 3 entered numbers from the user. (Hint: the minimum function in JavaScript is Math.min()).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!