Hands-On Arena
Interactive Practice Sandboxes
Solve code exercises with static browser assertion runners and instant XP rewards.
SELECT EXERCISE
1. Prompt Injection Sanitizer
SecurityComplete the function `isSafePrompt(str)` that returns false if the prompt contains words like 'ignore previous instructions', 'system override', or 'DAN mode' (case-insensitive). Return true otherwise.
JAVASCRIPT EDITOR