A test has a dependency on database.query. During the test the dependency is replacedwith an object called database with the method, query, that returns an array. Thedeveloper needs to verify how many times the method was called and the argumentsused each time.Which two test approaches describe the requirement?Choose 2 answers
Refer to the code below:Const resolveAfterMilliseconds = (ms) => Promise.resolve (setTimeout (( => console.log(ms), ms ));Const aPromise = await resolveAfterMilliseconds(500);Const bPromise = await resolveAfterMilliseconds(500);Await aPromise, wait bPromise;What is the result of running line 05?
Which two console logs outputs NaN ?Choose 2 answers
Refer to the code below:const addBy = ?const addByEight =addBy(8);const sum = addBYEight(50);Which two functions can replace line 01 and return 58 to sum?Choose 2 answers
Given the code below:Which three code segments result in a correct conversion from number to string? Choose 3 answers