98.2k views
2 votes
Identify the calculation performed by the following code.

function calcArea(length, width) {

var rectArea = length*width;

return rectArea;

}

var x = 8;

var y = 6;

calcArea(x, y);

a.
48
b.
96
c.
28
d.
56

1 Answer

3 votes

Answer:

48

Step-by-step explanation:

The function returns length * width

In the function call, the values are legnth: 8 and width: 6 this means the function is returns 8 * 6 wich is 48.

User TheLetterN
by
5.5k points