# 文字コードから文字を作る(String.fromCharCode) > 指定された文字コードから、その文字コードに相当する文字1文字だけを含む文字列を作ります。 - カテゴリ:計算(math) - ブロック:文字コード 0 の文字 - URL:https://makecode.minecraft-okinawa.com/reference/math/from-char-code/ - Pythonでの名前:String.from_char_code - 公式データ取得日:2026-11-13 - 動作確認:確認待ち ## JavaScript ```javascript String.fromCharCode(0) ``` ## Python ```python String.from_char_code(0) ``` ## 引数 | 名前 | 値 | 意味 | |---|---|---| | code | 数値 | | ## 使用例 ### So, you can make the letter B from: ```javascript let letItBe = String.fromCharCode(66); ``` ```python letItBe = String.from_char_code(66) ``` ### Decode a secret message from an array of numbers! ```javascript let secret = [67, 111, 111, 107, 105, 101, 115, 33]; let decoded = ""; for (let code of secret) { decoded = decoded + String.fromCharCode(code); } ``` ```python secret = [67, 111, 111, 107, 105, 101, 115, 33] decoded = "" for code in secret: decoded = decoded + String.from_char_code(code) ``` ## 出典 - [MakeCode for Minecraft 公式リファレンス(String.fromCharCode)](https://minecraft.makecode.com/reference/math/from-char-code) 執筆:鈴木孝昌(現役プロジェクトマネージャー/マイクラカップ指導者)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)