Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Javascript-Developer-I Topic 3 Question 87 Discussion

Actual exam question for Salesforce's Salesforce Certified JavaScript Developer I exam
Question #: 87
Topic #: 3
[All Salesforce Certified JavaScript Developer I Questions]

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);

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Margarett
7 days ago
Option D looks like the correct answer here. The 'Number()' function ensures that the result is a number, which is what we want in this case.
upvoted 0 times
...

Save Cancel