Practice ยท 3 of 3
Budget Enforcer
CHALLENGE
Difficulty: intermediate+25 XP
Write audit(assets, budgets) โ assets is { js: KB, css: KB, images: KB }; budgets is { js, css, images } (max allowed). Return { pass, over } where pass is true when every category is within budget, and over is an array of the exceeded category names sorted alphabetically.
Press Submit to check your solution.
Back to lesson: Practice: Vitals & Budgets โ Practice