/* 문자 "A"의 유니코드 코드 포인트 십진수: 65 */
console.log(String.fromCodePoint(65)); // 출력: "A"

/* 문자 "A"의 유니코드 코드 포인트 16진수: 0x0041 */
console.log(String.fromCharCode(0x0041)); // 출력: "A"

/* 이모지 "🎄"의 유니코드 코드 포인트 십진수: 127876 */
console.log(String.fromCodePoint(127876)); // 출력: "🎄"

/* 이모지 "🎄"의 유니코드 코드 포인트 16진수: 0x1F384 */
console.log(String.fromCodePoint(0x1F384)); // 출력: "🎄"
String.fromCodePoint()
String.fromCodePoint(num1)
String.fromCodePoint(num1, num2)
String.fromCodePoint(num1, num2, /* …, */ numN)
console.log(String.fromCodePoint(127876, 127877, 127878)); // 출력: "🎄🎅🎆"
console.log(String.fromCodePoint(128512));  // 출력: "😀"
let emoticons = "";
let startCodePoint = 128512; // "😃"의 유니코드 코드 포인트 값
let endCodePoint = 128586;   // "🙊"의 유니코드 코드 포인트 값

for (let i = startCodePoint; i <= endCodePoint; i++) {
    emoticons += String.fromCodePoint(i); // 문자 추가
}
console.log(emoticons);
// 출력: "😀😁😂😃😄😅😆😇😈😉😊😋😌😍😎😏😐😑😒😓😔😕😖😗😘😙😚😛😜😝😞😟😠😡😢😣😤😥😦😧😨😩😪😫😬😭😮😯😰😱😲😳😴😵😶😷😸😹😺😻😼😽😾😿🙀🙁🙂🙃🙄🙅🙆🙇🙈🙉🙊"