Usage
fromCharCode(unicode values) returns the character according to the related unicode values.
|
Syntax
String.fromCharCode(unicode1,unicode2,unicodeN);
unicodes- for example F-70 I-73 N-78 E-69 f-102 i-105 n-110 e-101
For all character unicode get vary.
|
//Returns chartacter for related unicode
var char1 = String.fromCharCode(78);
document.write("character is "+char1+" for related unicode.");
//Returns chartacter for related number of unicodes
var char2 = String.fromCharCode(70,73,78,69);
document.write("string is "+char2+" for related number of unicodes.");
|
Output
character is N for related unicode.
string is FINE for related number of unicodes.
|