The oct() function converts an integer number to an octal string prefixed with "0o".  The Octal notation is representation of integers in base 8, the notation uses digits from 0 to 7.

Syntax:

oct(integer)
oct(5)
//'0o5'
oct(8)
//'0o10'
oct(10)
//'0o12'
oct(50)
//'0o62'
oct(64)
//'0o100'