JS Built-ins
performancebeginner

performance β€” now() is greater than 0

πŸ“– Usage Example
performance.mark('start')
doWork()
performance.mark('end')
performance.measure('task', 'start', 'end')

Use performance.mark() and measure() to create named timing benchmarks.

performance.now() β€” positive value

performance.now() returns the time elapsed since the performance origin (page load / process start), which is always greater than zero.

Challenge: Verify that performance.now() is greater than 0.

πŸ’‘ Hints (1)
  • β€’ The performance origin is the time the page or process started β€” always in the past