Practice ยท 3 of 3
Budget Enforcer
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.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Vitals & Budgets โ Practice