Which three code segments should you use to develop the solution?
DRAG DROP
You are using JavaScript to create a calculator.
You create the following HTML. Line numbers are included for reference only.
You must create a function named add() that adds the values in the a and b input elements and displays the result in the result input element.
You define the following function in JavaScript:
function add() {
}
You need to complete the body of the function.
Which three code segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.
NOTE: Each correct selection is worth one point.
Answer:
Explanation: https://www.w3schools.com/jsref/jsref_eval.asp
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments