How to convert a character to ASCII code in Javascript?

Can someone please let me know how to do this?

Comments

  • JadokJadok Nantes, France

    You can do that:
    String.charCodeAt(0) which return the ascii code of the first char un this String
    and the opposite:
    String.fromCharCode(32) which do a space

    but you should tape that on google, you can easly find an answer

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion