I don't understand what's happening here:
var x = 14;
alert(x.toString(36)); //alerts 'e'
alert(x.toString(16)); //also alerts 'e'
x = 20;
alert(x.toString(16)); //alerts '14'
alert(x.toString(36)); //alerts 'k'
I think the first parameter determines the numerical system of the number to be converted, but I am not sure. Can anybody explain in detail what exactly is going on?