روش charCodeAt()
بازگشت به صفحه اصلی
بازگشت به صفحه مقاله
دو ستونی
دو سطری
اجرای کد RUN »
<!DOCTYPE html> <html> <body> <p>The charCodeAt() method returns the unicode of the character at a given position in a string:</p> <p id="demo"></p> <script> var str = "HELLO WORLD"; document.getElementById("demo").innerHTML = str.charCodeAt(0); </script> </body> </html>