Question: WRITTEN IN JAVASCRIPT Create a function named multiply It should accept arguments a and b It should multiply a by b only using the addition

WRITTEN IN JAVASCRIPT

Create a function named multiply

It should accept arguments a and b

It should multiply a by b only using the addition operator + and a loop

Create a function named divide

It should accept arguments a and b

it should check if b is zero and return undefined if it is

it should divide a by b only using the subtraction operator - and a loop. You do not need to account for division with a remainder

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!