Warning: session_start(): open(/home/var/php/e/t/sess_etoefti8sopg9vk2g9j820s1a7, O_RDWR) failed: No such file or directory (2) in /home/users/web07/2/1/0219112/phyokin/devlog/controllers/controller.php on line 15

Warning: session_start(): Failed to read session data: files (path: 2;/home/var/php) in /home/users/web07/2/1/0219112/phyokin/devlog/controllers/controller.php on line 15
devlog
MW211 EXIT

devlog
JavaScript/数値を文字列に変換する無名関数
2022年04月06日
┌──────────────────────────────────────┐
│(                                                                           │
│    (arg) => {                                                              │
│        switch (arg) {                                                      │
│            case  1: return 'a';                                            │
│            case  2: return 'b';                                            │
│            case  3: return 'c';                                            │
│            default: return 'z';                                            │
│        }                                                                   │
│    }                                                                       │
│)(1)                                                                        │
└──────────────────────────────────────┘
分類:JavaScript