Code Golf · #43 · 2026-05-17
Integer to Roman numeral
Difficulty 3/3 · JavaScript
How to play
Write a JavaScript function body that passes all test cases using the fewest characters. Run against examples first, then submit for the full test suite. Eagle < Birdie < Par.
Given an integer (1–3999), return its Roman numeral representation.
Examples
f(14) → XIV
f(1994) → MCMXCIV
Loading your progress...
Your code (function body — receives input)
function(input) { 0 chars
}
Write the shortest JavaScript function body that passes all tests · Back to hub