Notifications
Clear all
Topic starter
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;
Suggested Answer: B
Posted : 10/01/2023 5:24 am