How should line 02 be written to ensure that x evaluates to 6 in the line below?


Refer to the following code that performs a basic mathematical operation on a provided input:

function calculate(num) {

Return (num +10) / 3;

}

How should line 02 be written to ensure that x evaluates to 6 in the line below?

Let x = calculate (8);
A . Return Number((num +10) /3 );
B . Return (Number (num +10 ) / 3;
C . Return Integer(num +10) /3;
D . Return Number(num + 10) / 3;

Answer: B