javascript Convert string representation of hex value to hex -


How can I represent the hex value string in the representation of hex in javascript?

Am I returning from the checksum routine? I have a string value of "FE". I need this hex representation "\ xFE"

I just can not do this because it gives me a Returns the error:

  var crc = "FE"; Var hex = "\ x" + crc;   

This just gives me a new 4 character ASCII string:

  var crc = "FE"; Var hex = "0x" + "FE";   

Thxs for any guidance.

like

  var hex = parsient ("ff" 16);    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -