View all questions & answers for the JavaScript-Developer-I exam
Given the code below:
const copy = JSON.stringify([ newString(‘ false ’), new Bollean( false ), undefined ]);
What is the value of copy?
-- [ \”false\” , { } ]--
-- [ false, { } ]--
-- [ \”false\” , false, undefined ]--
-- [ \”false\” ,false, null ]--
QUESTIONNO: 91
The developer wants to test the array shown:
const arr = Array(5).fill(0)
Which two tests are the most accurate for this array ?
Choose 2 answers:
A. console.assert( arr.length === 5 );
B. arr.forEach(elem => console.assert(elem === 0)) ;
C.console.assert(arr[0] === 0 && arr[ arr.length] === 0);
D. console.assert (arr.length >0);
Answer: A,B
Submit