Practice ยท 3 of 3
Frame Budget Auditor
Write frameVerdict(tasks) โ tasks is an array of millisecond durations that all ran within ONE 16.7ms frame. Return "jank" if their sum exceeds 16.7, "tight" if it exceeds 12, otherwise "smooth". Also longTaskCount(tasks) returning how many SINGLE tasks exceed 50ms (the long-task threshold).
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Render Pipeline โ Practice