I'm trying to make a text box which will give an output of a string in hex. There is a similar question here which I got my current code from which I modified a bit, but when I logged it, instead of the string "486578", I got "Hex". Here is my code:
function Hex() {
var Hex = "Hex"
Hex = Hex.toString('16');
console.log(Hex)
}
Hex();
And no, I don't want something like encrypt.js. How would I solve this? Thanks!