Code AnalysisBeginner 60s
Trace: Path Normalize
What does this produce?
Starter code
const path='./etc/../etc/passwd';
const parts=path.split('/').filter(p=>p!=='..');
console.log(parts.join('/'))Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.