Predict the Output

Run the code in your head. Each round is 8 tiny JavaScript snippets from a casebook of 30: what does it print? Get 6 right to earn the Code Tracer badge.

Want a refresher first? Read Read code like a builder. A self-check saved on this device, not a certificate.

Question 1 of 8

What does this print?

const date = "2026-11-26"
console.log(date.replace(/-/, "/"))