K
ken
hello,
i'm using charCodeAt to get the ascii value at a given location in a
string but now i want to set the value of a location in a string to a
specific ascii value. is there a way to do this?
the only thing i can think of is to use the 'replace' method with a
regular expression that matches the nth location in the string and
replaces it with the new ascii value but that seems crude.
i appreciate any suggestions,
thanks!
ken
i'm using charCodeAt to get the ascii value at a given location in a
string but now i want to set the value of a location in a string to a
specific ascii value. is there a way to do this?
the only thing i can think of is to use the 'replace' method with a
regular expression that matches the nth location in the string and
replaces it with the new ascii value but that seems crude.
i appreciate any suggestions,
thanks!
ken