Back
Choose Your Topic
New Interview Question
What is the purpose of .fromCharCode() and .fromCodePoint()?
.fromCharCode()
.fromCodePoint()
String.fromCharCode() creates a string from UTF-16 code units, while String.fromCodePoint() works with full Unicode code points, supporting characters outside the Basic Multilingual Plane.
String.fromCharCode()
String.fromCodePoint()