> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/web/js/val/prim/str/method/string.fromcharcodesbetween.md).

# String.fromCharCodes()

[🔰 JS](/web/js.md) ⟩ [Types](/web/js/val/type.md) ⟩ [String](/web/js/val/prim/str.md) ⟩ [methods](/web/js/val/prim/str/method.md)

{% tabs %}
{% tab title="String.fromCharCodes( )" %}

```javascript
// ⭐️ String.fromCharCodes(65, 70) -> 'ABCDEF'
String.fromCharCodes = function(from, to){
    let array = [];
    for(let i = from; i <= to; i++) array.push(i);
    return array
        .map(code => String.fromCharCode(code))
        .join('');
};

// ⭐️ StringfromCharCodes(65, 70) -> 'ABCDEF'
export function StringfromCharCodes(from, to){
    let array = [];
    for(let i = from; i <= to; i++) array.push(i);
    return array
        .map(code => String.fromCharCode(code))
        .join('');
};
```

{% endtab %}

{% tab title="📗 參考" %}

{% endtab %}

{% tab title="⬇️ 應用" %}

* [randomPassword()](/web/appendix/custom/custom-functions/random-password.md)
  {% endtab %}
  {% endtabs %}
