Question: * 20 pts: Build an HTML document and paste the markup and script below in your document. * 70 pts: Write the JavaScript to perform

* 20 pts: Build an HTML document and paste the markup and script below in your document.

* 70 pts: Write the JavaScript to perform the required mathematical operation over the two

numbers passed into the method.

For example, if the operator is "+", num1 is 2 and num2 is 1, then add the two

numbers together and store the calculation in "result."

e.g. result = num1 + num2

Be sure to only write your code in the area specified. Do not modify any other script

t

HINT let number = 2;

if (number == 1) {

console.log("Number is 1!");

} else if (number == 2) {

console.log("Number is 2!");

} else if (number == 3) {

console.log("Number is 3!");

}

LAST STEP* Upload your HTML file to Teams and click the Turn In button.

Week 6 Lab 1

Week 6 Lab 1

Confused on this! I'm doing it in eclipse!

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!