ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 98 - Certified JavaScript Developer I discussion

Report
Export

Universal Container(UC) just launched a new landing page, but users complain that the website is slow. A developer found some functions that cause this problem. To verify this, the developer decides to do everything and log the time each of these three suspicious functions consumes.

console.time('Performance');

maybeAHeavyFunction();

thisCouldTakeTooLong();

orMaybeThisOne();

console.endTime('Performance');

Which function can the developer use to obtain the time spent by every one of the three functions?

A.
console.timeLog()
Answers
A.
console.timeLog()
B.
console.getTime()
Answers
B.
console.getTime()
C.
console.trace()
Answers
C.
console.trace()
D.
console.timeStamp()
Answers
D.
console.timeStamp()
Suggested answer: A
asked 23/09/2024
Massimiliano Parisi
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first