Javascript Octal Literals?

Javascript Octal Literals?
0

#1

I am getting a weird error on the console stating that octal literals cannot be used in strict mode?

var months = {01:“January”,02:“February”,03:“March”,04:“April”,05:“May”,06:“June”,07:“July”,08:“August”,09:“September”,10:“October”, 11:“November”,12:“December”};


#2

It’s a pretty sensible error: http://stackoverflow.com/a/34358536/1841605 and http://stackoverflow.com/a/34358661/1841605 suggest why this is a standard.

To get around it, use strings as your keys for the months.