src/Text.js
/**
     * 
     * Conversion of text to Hexadecimal, Binary, Decimal, and Octal.
     * 
     * Parameters:
     *  val: String  representing the text value
     * 
     * Returns: 
     *  String: Binary, Decimal and Octal representations of the binary data.
     * Eg.:
     *     Text.toBinary("A") ==> returns '01000001'
     *     Text.toOctal("A") ==> returns '101'
     *     Text.toDecimal("A") ==> returns '65'
     *     Text.toHex("A") ==> returns '41'
     * 
     */
Conversion of text to Hexadecimal, Binary, Decimal, and Octal.

String  representing the text value

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