SyntaxFix
Write A Post
Hire A Developer
Questions
String to byte array: "FooBar".split('').map(c => c.charCodeAt(0));
"FooBar".split('').map(c => c.charCodeAt(0));
Byte array to string: [102, 111, 111, 98, 97, 114].map(c => String.fromCharCode(c)).join('');
[102, 111, 111, 98, 97, 114].map(c => String.fromCharCode(c)).join('');