src/Hex.js
/**
     * 
     * Conversion of data from Hexadecimal to Text, Binary, Decimal, and Octal.
     * 
     * Parameters:
     *  val: String  representing the Decimal value
     * 
     * Returns: 
     *  String: Binary, Decimal and Octal representations of the binary data.
     * Eg.:
     *     Hex.toBinary("1e") ==> returns '00011110'
     *     Hex.toOctal("f2") ==> returns '362'
     *     Hex.toDecimal("d") ==> returns '13'
     *     Hex.toText("5a") ==> returns 'Z'
     * 
     */
Conversion of data from Hexadecimal to Text, Binary, Decimal, and Octal.

String  representing the Decimal value

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