Answers for "ascii to hex js"

0

ascii to hex js

function ascii_to_hex(str)
  {
	var arr1 = [];
	for (var n = 0, l = str.length; n < l; n ++) 
     {
		var hex = Number(str.charCodeAt(n)).toString(16);
		arr1.push(hex);
	 }
	return arr1.join('');
   }
Posted by: Guest on May-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language