int to octal javascript

JavaScript
yourNumber = parseInt(octString, 8);octString = yourNumber.toString(8);
Source

Also in JavaScript: