mentoor.io
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.

/ 162