#Are charCodeAt() and fromCharCode() methods used alot?

7 messages · Page 1 of 1 (latest)

south glen
#

In javascript, are the methods
charCodeAt()
and
fromCharCode()
used ofter?

river river
#

Either that or codePointAt

#

It might be useful for something

#

Maybe filtering out non-printable characters

#

Or determining if a character is a digit, letter, special character, non printable, etc

#

Or creating cyphers!!!

storm edge
#

Hi, @south glen That methods are used often in javascript.
charCodeAt() returns the Unicode value (integer) of a character at a specified index in a string, while fromCharCode() converts one or more Unicode values back into characters to form a string.