Question: In jabascript: Calculator Create a function per the following requirements: Input Ask the user for the following Number 1 Number 2 Mathematical Operation ( +

In jabascript: Calculator
Create a function per the following requirements:
Input
Ask the user for the following
Number1
Number2
Mathematical Operation (+,-,*,/)
Assume valid input
Return
The result of the mathematical operation in the following format:
Number1 operation Number2= result.
Examples:
Input (can use multiple prompts): 1,2,+
Output (note the format): 1+2=3
Input: 12,3,/
Output: 12/3=4

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!