Practice ยท 3 of 3
Findings Prioritizer
CHALLENGE
Difficulty: intermediate+25 XP
Write prioritize(findings) โ findings is an array of { id, severity } where severity is "critical" | "high" | "medium" | "low". Return the ids sorted by severity (critical first), stable within the same severity (preserve input order). Include summary(findings) returning counts per severity as { critical, high, medium, low } (zeros included).
Press Submit to check your solution.
Back to lesson: Practice: Secure the App โ Practice