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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started