Notifications
Clear all

What is the value of output after the code executes?

1 Posts
1 Users
0 Likes
156 Views
(@swindellguillermo)
Posts: 719
Noble Member
Topic starter
 

Refer to following code block:

Let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,];

Let output =0;

For (let num of array){

if (output >0){

Break;

}

if(num % 2 == 0){

Continue;

}

Output +=num;

What is the value of output after the code executes?

  • A . 16
    B. 36
    C. 11
    D. 25

Show Answer Hide Answer

Suggested Answer: A
 
Posted : 21/10/2022 9:56 pm

Latest Salesforce JavaScript Developer I Dumps Valid Version

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