src/Octal.js
/**
     * 
     * Conversion of data from Octal to Text, Binary, Decimal, and Hexadecimal.
     * 
     * Parameters:
     *  val: String  representing the Decimal value
     * 
     * Returns: 
     *  String: Binary, Decimal and Hexadecimal representations of the binary data.
     * Eg.:
     *     Octal.toBinary("65") ==> returns '00110101'
     *     Octal.toHex("30") ==> returns '18'
     *     Octal.toDecimal("15") ==> returns '13'
     *     Octal.toText("102 104") ==> returns 'BD'
     * 
     */
Conversion of data from Octal to Text, Binary, Decimal, and Hexadecimal.

String  representing the Decimal value

Binary, Decimal and Hexadecimal representations of the binary data.
Conversion of data from Octal to Text Binary Decimal and Hexadecimal . String representing the Decimal value Binary Decimal and Hexadecimal representations of the binary data .
static toBinary(val) {
        let bin=parseInt(val,8).toString(2);
        let res='';
        for(var i=bin.length;i<8;i++) {
            res+='0';
        }
        res+=bin;
        return res;
    }
static toBinary ( val ) { let bin = parseInt ( val , 8 ) . toString ( 2 ) ; let res = '' ; for ( var i = bin . length ; i < 8 ; i ++ ) { res += '0' ; } res += bin ; return res ; }
Conversion of data from Octal to Text, Binary, Decimal, and Hexadecimal.
Conversion of data from Octal to Text Binary Decimal and Hexadecimal .