Notifications
Clear all

what is the result of executing the code?

1 Posts
1 Users
0 Likes
87 Views
 Man
(@shortinoman)
Posts: 733
Noble Member
Topic starter
 

A developer writes the code below to calculate the factorial of a given number function sum(number)

{

return number * sum(number-1);

}

sum (3);

what is the result of executing the code?

  • A . 0
    B. 6
    C. Error
    D. -Infinity

Show Answer Hide Answer

Suggested Answer: C
 
Posted : 19/11/2022 11:59 pm

Latest Salesforce JavaScript Developer I Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: