Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
String.prototype.fromCharCode() Method in String Class of Javascript Syntax with Examples
1728 Views
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.
Example
//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.
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details