{"json_modified": "2016-10-03T05:40:01.981483", "uuid": "a3cfac98-18d8-4165-a8d1-42d464efb629", "title": "String.prototype.charCodeAt()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt", "tags": ["Reference", "Method", "String", "Unicode", "JavaScript"], "translations": [{"uuid": "27b688bc-58e2-4e85-90fe-0e2d5d6f77b4", "title": "String.prototype.charCodeAt()", "url": "/es/docs/Web/JavaScript/Referencia/Objetos_globales/String/charCodeAt", "tags": ["Method", "Prototype", "String", "Unicode", "JavaScript"], "summary": "El charCodeAt() m\u00e9todo devuelve un n\u00famero indicando el valor Unicode del car\u00e1cter en el \u00edndice proporcionado.", "localization_tags": [], "locale": "es", "last_edit": "2014-08-11T10:19:19", "review_tags": []}, {"uuid": "bf166fcf-0ab8-4fb4-820e-b3b8f8781391", "title": "String.prototype.charCodeAt()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/String/charCodeAt", "tags": ["R\u00e9f\u00e9rence", "M\u00e9thode", "String", "Unicode", "JavaScript"], "summary": "La m\u00e9thode charCodeAt() retourne un entier compris entre 0 et 65535 qui correspond au code UTF-16 d'un caract\u00e8re de la cha\u00eene situ\u00e9 \u00e0 une position donn\u00e9e. Le codet renvoy\u00e9 correspond au caract\u00e8re UTF-16 si celui-ci peut \u00eatre repr\u00e9sent\u00e9 sur un seul codet, sinon, la m\u00e9thode renvoie la premi\u00e8re partie de la paire. Les codets pouvant \u00eatre renvoy\u00e9s sont ceux inf\u00e9rieurs ou \u00e9gaux \u00e0 0x10000. Si vous souhaitez obtenir l'ensemble de la valeur, vous pouvez utiliser la m\u00e9thode codePointAt().", "localization_tags": [], "locale": "fr", "last_edit": "2016-07-25T03:28:40", "review_tags": []}, {"uuid": "f0260c80-3eec-4284-93c2-429e5bde0376", "title": "String.prototype.charCodeAt()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt", "tags": [], "summary": "\u4e0e\u3048\u3089\u308c\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u4f4d\u7f6e\u3059\u308b\u6587\u5b57\u306e Unicode \u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30c8\u309210\u9032\u6570\u5024\u3067\u8fd4\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-14T02:03:00", "review_tags": []}, {"uuid": "ed416c58-ef6a-4651-8529-c69e7ca881d3", "title": "String.prototype.charCodeAt()", "url": "/ko/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt", "tags": [], "summary": "charCodeAt() \uba54\uc18c\ub4dc\ub294 \uc8fc\uc5b4\uc9c4 \uc778\ub371\uc2a4\uc5d0 \ub300\ud55c\u00a0UTF-16 \ucf54\ub4dc\ub97c \ub098\ud0c0\ub0b4\ub294 0\ubd80\ud130\u00a065535 \uc0ac\uc774\uc758\u00a0\uc815\uc218\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4. \uc804\uccb4 \ucf54\ub4dc \uac12\uc744 \uc6d0\ud558\uc2e0\ub2e4\uba74 codePointAt()\uc744 \uc0ac\uc6a9\ud558\uc138\uc694.", "localization_tags": ["inprogress"], "locale": "ko", "last_edit": "2016-07-29T23:07:16", "review_tags": []}, {"uuid": "b7bc2974-dc28-45bf-83a4-73aa8d533a3d", "title": "String.prototype.charCodeAt()", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/String/charCodeAt", "tags": ["Method", "Prototype", "String", "Unicode", "JavaScript"], "summary": "Zwraca liczb\u0119 oznaczaj\u0105c\u0105 warto\u015b\u0107 Unicode znaku o podanym indeksie.", "localization_tags": [], "locale": "pl", "last_edit": "2015-04-22T03:04:04", "review_tags": []}, {"uuid": "d1d468b8-414c-4a4a-9459-5939453ba5d4", "title": "String.prototype.charCodeAt()", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt", "tags": ["String", "Reference", "R\u00e9f\u00e9rence", "JavaScript", "Unicode", "Method"], "summary": "\u041c\u0435\u0442\u043e\u0434 charCodeAt() \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u042e\u043d\u0438\u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0443 (\u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u0434\u043e\u0432\u044b\u0445 \u0442\u043e\u0447\u0435\u043a \u042e\u043d\u0438\u043a\u043e\u0434\u0430, \u0431\u043e\u043b\u044c\u0448\u0438\u0445 0x10000).", "localization_tags": [], "locale": "ru", "last_edit": "2014-11-17T04:01:15", "review_tags": []}, {"uuid": "23c16028-90e4-4947-95e1-b0c931f3fcaa", "title": "String.prototype.charCodeAt()", "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt", "tags": [], "summary": "charCodeAt()\u00a0\u65b9\u6cd5\u8fd4\u56de0\u523065535\u4e4b\u95f4\u7684\u6574\u6570\uff0c\u4ee3\u8868\u7d22\u5f15\u5904\u5b57\u7b26\u7684UTF-16\u7f16\u7801\u5355\u5143\uff08\u5728Unicode\u7f16\u7801\u5355\u5143\u8868\u793a\u4e00\u4e2a\u5355\u4e00\u7684UTF-16\u7f16\u7801\u5355\u5143\u7684\u60c5\u51b5\u4e0b\uff0cUTF-16\u7f16\u7801\u5355\u5143\u5339\u914dUnicode\u7f16\u7801\u5355\u5143\u3002\u5426\u5219\uff0c\u6bd4\u5982Unicode \u7f16\u7801\u5355\u5143 > 0x10000 \u7684\u60c5\u51b5\u4e0b\uff0c\u53ea\u80fd\u5339\u914dUnicode\u4ee3\u7406\u5bf9\u7684\u7b2c\u4e00\u4e2a\u7f16\u7801\u5355\u5143\uff09\u3002\u5982\u679c\u4f60\u5e0c\u671b\u5f97\u5230\u6574\u70b9\u7f16\u7801\u503c\uff0c\u4f7f\u7528codePointAt()", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2016-10-03T05:39:52", "review_tags": []}], "modified": "2016-08-02T01:46:35", "label": "String.prototype.charCodeAt()", "localization_tags": [], "locale": "en-US", "id": 7691, "last_edit": "2016-07-23T16:49:50", "summary": "The charCodeAt() method returns an integer between 0 and 65535 representing\u00a0the UTF-16 code unit at the given index (the UTF-16 code unit matches the Unicode code point for code points representable in a single UTF-16 code unit, but might also be the first code unit of a surrogate pair for code points not representable in a single UTF-16 code unit,\u00a0e.g. Unicode code points > 0x10000). If you want the entire code point value, use codePointAt().", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Return_value", "title": "Return value"}, {"id": "Description", "title": "Description"}, {"id": "Examples", "title": "Examples"}, {"id": "Using_charCodeAt()", "title": "Using "}, {"id": "Fixing_charCodeAt()_to_handle_non-Basic-Multilingual-Plane_characters_if_their_presence_earlier_in_the_string_is_unknown", "title": "Fixing "}, {"id": "Fixing_charCodeAt()_to_handle_non-Basic-Multilingual-Plane_characters_if_their_presence_earlier_in_the_string_is_known", "title": "Fixing "}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Global_Objects/String/charCodeAt", "review_tags": []}