Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

charCodeAt() equivalent?

$
0
0

@barrylachapelle wrote:

Hi everyone,

Is there an oF equivalent of charCodeAt() in JS? I am trying to return a unicode value for characters in a string. Similar to this JS...

//Return the Unicode of the first character in a string (the Unicode value for "H"):

var str = "HELLO WORLD";
var n = str.charCodeAt(0);
// returns 72

Thanks for any help.

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles