AnsweredAssumed Answered

Why?

Question asked by mando.alvarado.jose on Jan 23, 2014
Latest reply on Jan 24, 2014 by mrogers
Chrome:

console.log(parseInt('045'));
console.log(parseInt(045));



45
37



Firefox:

console.log(parseInt('045'));
console.log(parseInt(045));



45
37



Node.js:

console.log(parseInt('045'));
console.log(parseInt(045));



45
37



Alfresco javascript:

logger.log(parseInt('045'));
logger.log(parseInt(045));



37
37



I understand 37. Because octal. I know that parseInt takes an optional radix argument. My only question is, why is Alfresco Javascript different?

Outcomes