Code AnalysisBeginner 60s
Trace: ROT13 Cipher
What does ROT13('ABC') return?
Starter code
const s='ABC';
const r=s.split('').map(c=>String.fromCharCode(((c.charCodeAt(0)-65+13)%26)+65)).join('');
console.log(r)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.