ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 154 - Certified JavaScript Developer I discussion

Report
Export

A developer wrote the following code to test a sum3 function that takes in an array of numbers and returns the sum of the first three numbers in the array, and the test passes.

A different developer made changes to the behavior of sum3 to instead sum only the first two numbers present in the array.

Which two results occur when running this test on the updated sum3 function?

Choose 2 answers

A.
The line 05 assertion passes.
Answers
A.
The line 05 assertion passes.
B.
The line 02 assertion passes.
Answers
B.
The line 02 assertion passes.
C.
The line 02 assertion fails.
Answers
C.
The line 02 assertion fails.
D.
The line 05 assertion fails.
Answers
D.
The line 05 assertion fails.
Suggested answer: B, D
asked 23/09/2024
Rannie Dayapan
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first