fromCharCode and fromCodePoint methods | String Object In JavaScript

Опубликовано: 13 Август 2022
на канале: Code Explained
2,094
41

🎁 Join my channel to get access to perks:
   / @codeexplained  

🧡 Hello All JavaScript Lovers Outhere!

Today you're going to learn about the String Object In JavaScript.

This tutorial is a series of videos, in each video we will discuss a method (or more) of the String Object in JavaScript.

In today's video, you're going to learn about the fromCharCode, and fromCodePoint methods.

The static String.fromCharCode() method returns a string created from the specified sequence of UTF-16 code units.

The static String.fromCodePoint() method returns a string created by using the specified sequence of code points.

🟢🟠 The string.fromCharCode().
🔷 Syntax :
String.fromCharCode(num1)
String.fromCharCode(num1, num2)
String.fromCharCode(num1, num2, /* …, */ numN)
🔹num1, ..., numN : A sequence of numbers that are UTF-16 code units. The range is between 0 and 65535 (0xFFFF). Numbers greater than 0xFFFF are truncated. No validity checks are performed.

🟢🟠 The string.fromCodePoint().
🔷 Syntax :
String.fromCodePoint(num1)
String.fromCodePoint(num1, num2)
String.fromCodePoint(num1, num2, /* …, */ numN)
🔹num1, ..., numN : A sequence of code points.

🌍 Social Media Links.
◾ Facebook :   / code.explained.official  
◾ Twitter :   / code_explained  
◾ Instagram :   / code.explained.official  
◾ GitHub : https://github.com/CodeExplainedRepo

💲 Suppport the Channel
Paypal : https://paypal.me/CodeExplained
Buy Me a Coffee: https://www.buymeacoffee.com/CodeExpl...


На этой странице сайта вы можете посмотреть видео онлайн fromCharCode and fromCodePoint methods | String Object In JavaScript длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Code Explained 13 Август 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,094 раз и оно понравилось 41 зрителям. Приятного просмотра!