How to convert a character to ASCII code in Javascript? - Programmers Heaven

Howdy, Stranger!

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

Categories

How to convert a character to ASCII code in Javascript?

NickFNickF USAPosts: 132Member

Can someone please let me know how to do this?

Tagged:

Comments

  • JadokJadok Nantes, FrancePosts: 4Member

    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.