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?
- console.timeLog()
- console.getTime()
- console.trace()
- console.timeStamp()
Reveal Solution Next Question