JavaScript

JavaScript

What is the purpose of .fromCharCode() and .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.

To post a comment or share your answer, please log in first

No comments yet. Be the first to share your thoughts!

1 / 162