JavaScript-Developer-I Exam Question 11
HTML:
< p > The current status of an Order: < span id= " status " > In Progress < /span > < /p > Which JavaScript statement changes ' In Progress ' to ' Completed ' ?
< p > The current status of an Order: < span id= " status " > In Progress < /span > < /p > Which JavaScript statement changes ' In Progress ' to ' Completed ' ?
JavaScript-Developer-I Exam Question 12
Given the code below:
let numValue = 1982;
Which three code segments result in a correct conversion from number to string?
let numValue = 1982;
Which three code segments result in a correct conversion from number to string?
JavaScript-Developer-I Exam Question 13
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. The test passes:
01 let res = sum3([1, 2, 3]);
02 console.assert(res === 6);
03
04 res = sum3([1, 2, 3, 4]);
05 console.assert(res === 6);
A different developer made changes to the behavior of sum3 to instead sum all of the numbers present in the array.
Which two results occur when running the test on the updated sum3 function?
01 let res = sum3([1, 2, 3]);
02 console.assert(res === 6);
03
04 res = sum3([1, 2, 3, 4]);
05 console.assert(res === 6);
A different developer made changes to the behavior of sum3 to instead sum all of the numbers present in the array.
Which two results occur when running the test on the updated sum3 function?
JavaScript-Developer-I Exam Question 14
Why does second have access to variable a?
JavaScript-Developer-I Exam Question 15
Which two console logs output NaN?
