1

I have javascript code:

s = String.fromCharCode(s);

This works but it only works with one character even though the String.fromCharCode method is supposed to work with multiple characters seperated by commas. Any ideas why this is?

Rey
  • 23
  • 3

1 Answers1

1

If you want more than one character, you'll want to pass a sequence of values...

String.fromCharCode(65, 66, 67);  // "ABC"
sfletche
  • 47,248
  • 30
  • 103
  • 119