function hex2a(hexx) {
var hex = hexx.toString();//force conversion
var str="";
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
return str;
}
hex2a('32343630'); // returns '2460'
More Related Contents:
- remove duplicate key name and group duplicate key related info into array
- Do not include in random number
- Colors in JavaScript console
- Dynamically add script tag with src that may include document.write
- What exactly is the parameter e (event) and why pass it to JavaScript functions?
- How to compress an image via Javascript in the browser?
- How to extract the hostname portion of a URL in JavaScript
- jQuery checkbox checked state changed event
- Why is console.log() considered better than alert()?
- “this” keyword in event methods when using JavaScript prototype object
- How to include multiple js files using jQuery $.getScript() method
- Rendering React Components from Array of Objects
- What is the difference between “let” and “var”?
- De-obfuscate Javascript code to make it readable again [duplicate]
- Can I run HTML files directly from GitHub, instead of just viewing their source?
- Spreading undefined in array vs object
- Reverse of JSON.stringify?
- How to access the content of the “embed” tag in HTML
- How do you easily create empty matrices javascript?
- Is it possible to get data from HTML forms into android while using webView?
- unable to scroll in scrollView
- How can I use console logging in Internet Explorer?
- Angular why asterisk (*)
- Assigning to document.location.href without clobbering history
- How do you completely remove Ionic and Cordova installation from mac?
- Convert non-ASCII characters (umlauts, accents…) to their closest ASCII equivalent (for slug creation)
- How to hide optgroup/option elements?
- When to access the attribute (vs the property)?
- Passing object from injected page script to content script
- How to pass some parameters to function called in addEventListener? [duplicate]