From 7659d1fdaaa61334bcb9150419c65adc46a883cc Mon Sep 17 00:00:00 2001
From: Hasan Abdullah <37593075+HasanAbdullah31@users.noreply.github.com>
Date: Tue, 25 Jun 2019 16:07:24 -0400
Subject: [PATCH] feat: add article for JavaScript String.codePointAt()
(#36011)
---
.../string-prototype-codepointat/index.md | 26 ++++++++++++++-----
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/guide/english/javascript/standard-objects/string/string-prototype-codepointat/index.md b/guide/english/javascript/standard-objects/string/string-prototype-codepointat/index.md
index df9ab1c685..d8514bdb37 100644
--- a/guide/english/javascript/standard-objects/string/string-prototype-codepointat/index.md
+++ b/guide/english/javascript/standard-objects/string/string-prototype-codepointat/index.md
@@ -3,13 +3,27 @@ title: String.prototype.codePointAt
---
## String.prototype.codePointAt
-This is a stub. Help our community expand it.
+The `codePointAt()` method returns a non-negative integer representing the Unicode code point value of a specified character in the given string.
-This quick style guide will help ensure your pull request gets accepted.
+**Syntax**
+```javascript
+str.codePointAt(pos) // pos is the position of the character in str from which to return the code point value
+```
-
+**Example**
+```js
+var x = "AB12↑↓";
+console.log(x.codePointAt(0)); // 65
+console.log(x.codePointAt(1)); // 66
+console.log(x.codePointAt(2)); // 49
+console.log(x.codePointAt(3)); // 50
+console.log(x.codePointAt(4)); // 8593
+console.log(x.codePointAt(5)); // 8595
+console.log(x.codePointAt(6)); // undefined
+```
+
+*Note*: if there is no character at `pos`, `codePointAt()` returns undefined.
#### More Information:
-
-
-
+- [String.prototype.codePointAt() on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt)
+- [Unicode Lookup](https://unicodelookup.com/)