JavaScript: String.fromCodePoint

By Xah Lee. Date: . Last updated: .

New in JS2015.

String.fromCodePoint( codepoint1, codepoint2 etc )
Return a string, each character corresponds to the codepoint in argument. [see Character, Code Unit, Codepoint]
// create string from unicode codepoints

console.log(String.fromCodePoint(97, 128514) === "a😂"); // true

// 97 is the codepoint for letter “a”
// 128514 is the codepoint for the char 😂 FACE WITH TEARS OF JOY

Find Character's Codepoint

String.prototype.codePointAt

For codepoint of English character and punctuations, see ASCII Table .

∑ JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

String

prototype