Skip to main content
2 of 4
edited body

Print months in your own language

m = [];
for (i = 12; i--;) {
    m[i] = (new Date(0, i)).toLocaleString(0, {
        month: "long"
    });
}
document.write(m)