Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 46 Topic 5 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 46 Topic 5 Discussion

JavaScript-Developer-I Exam Topic 5 Question 46 Discussion:
Question #: 46
Topic #: 5

A developer implements a function that adds a few values.

Function sum(num) {

If (num == undefined) {

Num =0;

}

Return function( num2, num3){

If (num3 ===undefined) {

Num3 =0 ;

}

Return num + num2 + num3;

}

}

Which three options can the developer invoke for this function to get a return value of 10 ?

Choose 3 answers


A.

Sum () (20)


B.

Sum (5, 5) ()


C.

sum() (5, 5)


D.

sum(5)(5)


E.

sum(10) ()


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.