Code AnalysisIntermediate 60s
Trace: JSON Reviver
What is the output?
Starter code
const s = '{"a":1,"b":2}';
const o = JSON.parse(s, (k, v) => (typeof v === "number" ? v * 2 : v));
console.log(o.a);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.