ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 130 - Certified JavaScript Developer I discussion

Report
Export

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 );
Answers
A.
Return Number((num +10) /3 );
B.
Return (Number (num +10 ) / 3;
Answers
B.
Return (Number (num +10 ) / 3;
C.
Return Integer(num +10) /3;
Answers
C.
Return Integer(num +10) /3;
D.
Return Number(num + 10) / 3;
Answers
D.
Return Number(num + 10) / 3;
Suggested answer: B
asked 23/09/2024
Arthur la Feber
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first