Q: 25
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?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.