mpalmer12345
Programmer
After a bit of searching, I give up! How do I convert an ASCII value to its numeric equivalent (preferably binary) in Javascript? The result should cover all values from 0 to 255, not just A-Za-z.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
javascript:alert( String.fromCharCode(68, 97, 110) );
var myString="Dan";
alert(myString.charCodeAt()); // returns 68
alert(myString.charCodeAt(0)); // returns 68
alert(myString.charCodeAt(1)); // returns 97
alert(myString.charCodeAt(2)); // returns 110