---
# System prepended metadata

title: "\U0001F3C5 Day 04 - 型別陷阱題"
tags: [JS 直播班 - 2023 秋季班]

---

---
tags: JS 直播班 - 2023 秋季班
---
# 🏅 Day 04 - 型別陷阱題

### 題目

以下題目請合併為一份 CodePen 繳交，並透過「註解」進行回答。

問題
---
以下變數 a, b, c, d 它們的值、型別各自為何？ 
( 請先想想看，不要用 console.log 檢查 ᕙ( ˙-˙ )ᕗ )

```jsx=
let a = true + true ;
let b = false + 123 ;
let c = null + 123 ;
let d = null + '123';
```

範例回答格式：
```javascript=
// a = 值, 型別
// b = 值, 型別
```


## 回報流程

將答案寫在 CodePen 並複製 CodePen 連結貼至底下回報就算完成了喔! 
解答位置請參考下圖（需打開程式碼的部分觀看）

![](https://i.imgur.com/vftL5i0.png)

<!-- 解答：  

a = 2, number
b = 123, number
c = 123, number
d = 'null123', string

補充文章：https://ithelp.ithome.com.tw/articles/10191180
-->




回報區
---


|#|        Discord        |                                  CodePen / 答案                                  |
|:-:|:---:|:--------------------------------------------------------------------------------:|
|01|kuanju27|[CodePen](https://codepen.io/Eero-Chiao/pen/yLGwqLm)|
|02|詹姆士|[CodePen](https://codepen.io/z111048/pen/LYMaBEy)|
| 03 | santu0868 | [Codepen](https://codepen.io/HatsumiSan/pen/YzdgqyW) |
|04|pinyi_9|[Codepen](https://codepen.io/Wpypy/pen/gOZEjbK)|
|05|Zem| [CodePen](https://codepen.io/Potoro/pen/KKbEBpj)|
|06|xiaokui_71292|[Codepen](https://codepen.io/pen?template=GRPeBoG)|
|07|楓仔|[Codepen](https://codepen.io/maplestartend/pen/zYybLBB?editors=1112)|
|08|Peng|[Codepen](https://codepen.io/H-Peng/pen/OJrqwRa?editors=0010)|
|09|Ann Chou|[Codepen](https://codepen.io/annchou_illu/pen/Yzdgjpe)|
|10| 銀光菇 |[CodePen](https://codepen.io/genesynthesis/pen/PoXLBGy)|
|11| Ching |[CodePen](https://codepen.io/tzuchingg/pen/XWoGBjK?editors=0010)|
|12| 小夏 |[CodePen](https://codepen.io/michaelhsia/pen/JjwzBbN)|
|13|yuling|[Codepen](https://codepen.io/igzdflpu/pen/MWZxBVy)|
|14|阿榮|[Codepen](https://codepen.io/codeitaday/pen/zYybLRZ?editors=0011)|
|15|依依|[Codepen](https://codepen.io/Rita-Yang/pen/abPMjKy?editors=1010)|
|16|runweiting|[Codepen](https://codepen.io/weiting14/pen/LYMaBde)|
|17|風羽|[Codepen](https://codepen.io/Joy-Huang/pen/vYvPayR)|
| 18 | claire | [CodePen](https://codepen.io/yi-wen-chen/pen/bGOZjJG) |
| 19 | Alyce | [CodePen](https://codepen.io/alycehwy/pen/ExGMpzb?editors=0010) |
| 20 | yuan! | [CodePen](https://codepen.io/townyuan/pen/XWoGBQa) |
| 21 | ann6212 | [CodePen](https://codepen.io/igzdflpu/pen/MWZxBVy) |
| 22 | Winnie | [CodePen](https://codepen.io/codepen-io-winnie/pen/abPMazY?editors=0010) |
| 23 | ShangChu | [CodePen](https://codepen.io/shangchu0412/pen/rNoRZMp?editors=1010) |
|24|Moreene|[CodePen](https://codepen.io/Moreene/pen/wvROEoM)|
| 25 | Chia Pin | [CodePen](https://codepen.io/joker-cat/pen/BavbOWo) |
| 26 | shiang | [CodePen](https://codepen.io/Bo-Shiang/pen/OJrqoxM) |
| 27 | Peggy | [CodePen](https://codepen.io/peggylai/pen/qBLvMpg) |
| 28 | Lucy | [CodePen](https://codepen.io/JingHuei/pen/NWeJLEj?editors=0010) |
| 29 | Eden |[Codepen](https://codepen.io/iseden/pen/rNoRZrK)|
| 30 | hsu0921 | [CodePen](https://codepen.io/HSUANIN0327/pen/bGOZxzW) |
| 31 | 一畫 | [CodePen](https://codepen.io/YH-K-the-selector/pen/wvROEZJ) |
| 32 | tanuki5863 | [CodePen](https://codepen.io/tanuki320/pen/abPMagM?editors=1011) |
| 33 | Helen | [CodePen](https://codepen.io/milkteamonster/pen/poqYxjK) |
| 34 | 凱恩 | [CodePen](https://codepen.io/Royen0506/pen/YzdgJqq) |
| 35 | 保羅 | [CodePen](https://codepen.io/paul-1997/pen/OJrqBXg?editors=0011) |
| 36 | hsiu8767 | [CodePen](https://codepen.io/hsiu8767/pen/rNoRqMR?editors=0010) |
| 37 | 蛋塔 | [CodePen](https://codepen.io/Hong-Game1/pen/rNoRqyb) |
| 38 | ming0712 | [CodePen](https://codepen.io/StevenHuang/pen/QWzoZqB?editors=0010) |
| 39 | ChrisSQR | [CodePen](https://codepen.io/ChrisSQR/pen/ZEVPqvZ) |
| 40 | MDFK | [CodePen](https://codepen.io/maywang/pen/wvROYmm?editors=0012) |
| 41 | SHUO | [CodePen](https://codepen.io/xrzarxkl-the-reactor/pen/JjwzmmX) |
| 42 | Uli | [CodePen](https://codepen.io/uli1313/pen/zYybmeG) |
| 43 | a_windy | [CodePen](https://codepen.io/pen?template=QWzoZXY) |
| 44 | Rxzan | [CodePen](https://codepen.io/Tzuru-Chen/pen/wvROYbE) |
| 45 | Andy | [CodePen](https://codepen.io/andy31342/pen/PoXLxGd?editors=0011)|
| 46 | Ataraxia | [CodePen](https://codepen.io/ataraxia8888/pen/vYvpQdM)|
| 47 | CPing | [CodePen](https://codepen.io/CPing/pen/eYbXQLB)|
| 48 |      Jerry       | [CodePen](https://codepen.io/ildkosxk-the-encoder/pen/XWoGozq)|
| 49 | Joy_chiang | [CodePen](https://codepen.io/fwysphbw-the-vuer/pen/wvRORrG) |
| 50 | RX00 | [CodePen](https://codepen.io/llqzknqv-the-styleful/pen/MWZxZBQ?editors=1010) |
| 51 | 白夜 | [CodePen](https://codepen.io/Wei903/pen/BavbvqL?editors=1111) |
| 52 | patrickpie | [CodePen](https://codepen.io/patrickpie/pen/QWzozXO?editors=0010) |
| 53 | LinaChen | [CodePen](https://codepen.io/LinaChen/pen/jOXJdWz) |
| 54 | Luna | [CodePen](https://codepen.io/sfctsolp-the-sasster/pen/dywraRM?editors=0010) |
| 55 | Leo | [CodePen](https://codepen.io/Aruminiya/pen/ZEVPwvP) |
| 56 | 精靈 | [CodePen](https://codepen.io/justafairy/pen/dywraQN?editors=0010) |
| 57 | ⭐️小正 | [CodePen](https://codepen.io/colorgolden/pen/BavbbNO) |
| 58 | penny_41707 | [CodePen](https://codepen.io/penny-wang-the-flexboxer/pen/KKbEJjY) |
| 59 | damon0323 | [CodePen](https://codepen.io/swk9eny2/pen/QWzooyP?editors=0010) |
| 60 | Mattie | [CodePen](https://codepen.io/mattielin/pen/LYMaaxj) |
| 61 | Hank._.z | [CodePen](https://codepen.io/linoiaby-the-sans/pen/dywrrZd) |
| 62 | Allen | [CodePen](https://codepen.io/hlctw/pen/bGOZZWZ) |
| 63 | Dora | [CodePen](https://codepen.io/dorayu/pen/JjwzzaO?editors=1011)|
| 64 | 奔跑吧(GTR150) | [CodePen](https://codepen.io/Wer-Qwe/pen/LYMaaXd)|
| 65 | sunny_08149 | [CodePen](https://codepen.io/Sunny-Lin/pen/VwqRNPR) |
| 66 | Yijing | [CodePen](https://codepen.io/Yi-Jing-71080635/pen/oNJVOQr?editors=1010) |
| 67 | nini1202desu | [CodePen](https://codepen.io/tvxq5206/pen/YzdgOQb) |
| 68 | 浪裡小白龍#6860 | [CodePen](https://codepen.io/Emillo/pen/qBLvGLN?editors=0011) |
| 69 | MY | [CodePen](https://codepen.io/ahmomoz/pen/PoXLrwa) |
| 70 | Jun_ | [CodePen](https://codepen.io/Jun-L/pen/poqYXbM) |
| 71 | jiayu | [CodePen](https://codepen.io/fjqxaznl-the-reactor/pen/yLGwdVL?editors=0010) |
| 72 | kawa | [CodePen](https://codepen.io/z83xji6/pen/XWoGLRK?editors=0011) |
| 73 | Lychee KK | [CodePen](https://codepen.io/kakakala/pen/MWZxMqe) |
| 74 | judy123 | [CodePen](https://codepen.io/tsong-h/pen/vYvPqbV?editors=1111) |
| 75 | skypassion5000 | [CodePen](https://codepen.io/skypassion5000/pen/abPMeoE?editors=0010) |
| 76 | 荷菓かのり | [CodePen](https://codepen.io/oogxwkvw-the-builder/pen/yLGwdrJ?editors=0012) |
| 77 | sponge | [CodePen](https://codepen.io/biunpujm-the-flexboxer/pen/NWeJQPq?editors=1111) |
| 78 | jimmy.0706 | [CodePen](https://codepen.io/WeiJun-Mao/pen/gOZEVKa) |
| 79 | smalljie | [CodePen](https://codepen.io/smalljie/pen/KKbEOBv) |
| 80 | gebyman | [CodePen](https://codepen.io/gebyman/pen/mdagbOO?editors=0010) |
| 81 | Fabio20 | [CodePen](https://codepen.io/fabio7621/pen/NWemKdX) |
| 82 | Fia | [CodePen](https://codepen.io/HHH_Ten/pen/yLGrBdW?editors=0010) |
| 83 | rogan6517 | [CodePen](https://codepen.io/RoganHsu/pen/LYMvYEx?editors=0010) |
| 84 | 白熊 | [CodePen](https://codepen.io/WhiteBearChen/pen/rNobNwe?editors=0011) |
| 85 | ss585801 | [CodePen](https://codepen.io/ss585801/pen/yLGrLXy) |
| 86 | YIN | [CodePen](https://codepen.io/andy888jam/pen/QWzPwwy?editors=1111) |
| 87 | 小廷 | [CodePen](https://codepen.io/uyxkiake-the-selector/pen/OJrGPNL?editors=0012) |
| 88 | shuuu | [CodePen](https://codepen.io/afjrvjzl-the-bashful/pen/JjwVoZw?editors=1011) |
| 89 | shiro | [CodePen](https://codepen.io/chenghsienwang/pen/rNobaQK?editors=0010) |
| 90 | hsuanlee1084 | [CodePen](https://codepen.io/hsuanlee1024/pen/XWoQJLx?editors=0010) |
| 91 | swalok47716 | [CodePen](https://codepen.io/swalok/pen/VwqNLbe?editors=0011) |
| 92 | yu.t_liu | [CodePen](https://codepen.io/YuT200053/pen/bGOJdRa?editors=0010) |
| 93 | celinelinnn |[CodePen](https://codepen.io/celinephoebe/pen/ExGJjzj)
| 94 | Daylily |[CodePen](https://codepen.io/daylily/pen/abPxvdZ)
| 95 | phyllis_0802 | [CodePen](https://codepen.io/Phyllis-Cheng/pen/ZEVZbeG) |
| 96 | neo_1104 | [CodePen](https://codepen.io/eipakoeq-the-animator/pen/oNJOYaL) |
| 97 | Ivy | [CodePen](https://codepen.io/Irene-Ke/pen/VwqNPeW) |
| 98 | PH | [CodePen](https://codepen.io/lokf9527/pen/MWZRpyJ) |
| 99 | xuan | [CodePen](https://codepen.io/xuan0915/pen/vYvMxmM?editors=0012) |
| 100 | Zhu | [CodePen](https://codepen.io/codepenplayer/pen/BavEWYo) |
| 101 | Oria |[CodePen](https://codepen.io/kajing/pen/gOZymVr?editors=0010) |
| 102 | cest_jessie | [CodePen](https://codepen.io/itsjessiechen/pen/gOZyWdx) |
| 103 | Lainie1931 | [CodePen](https://codepen.io/Lainie88/pen/OJrGmYQ?editors=1010) |
| 104 | minnielin | [CodePen](https://codepen.io/ShengXin-Lin/pen/qBLwjOq?editors=1010) |
| 105| OSN | [CodePen](https://codepen.io/osncodepen/pen/rNobzKJ)
| 106| Ccccc | [CodePen](https://codepen.io/CyreneTsai/pen/JjwVrwY)
| 107 | Sean Chang|[CodePen](https://codepen.io/windfantasy4/pen/abPxLgO)
| 108 | zona|[CodePen](https://codepen.io/w242920/pen/jOXRavN)
| 109 | iris|[CodePen](https://codepen.io/sz594380/pen/QWzPQam)
| 110 | Befun|[CodePen](https://codepen.io/richard260572/pen/YzdMLEg)
| 111 |維哲|[CodePen](https://codepen.io/kwz1202/pen/WNLWgbb)
| 112 |JUNEW|[CodePen](https://codepen.io/June-W/pen/QWzPJPL?editors=0010)
| 113 | shcopy | [CodePen]([網址](https://codepen.io/shcopy/pen/abPxYzv)) |
| 114 | hsuhsusophie | [CodePen](https://codepen.io/hsuhsusophie/pen/PoXgvGG?editors=1111)|
| 115 | Iris | [CodePen](https://codepen.io/iris831206/pen/gOZyJem?editors=1111)|
| 116 | xin | [CodePen](https://codepen.io/Estherrrrrr999/pen/GRPLbXB)|
| 117 | skylaaaa | [CodePen](https://codepen.io/chihyu2790/pen/yLGWyaJ)|
| 118 | TTedd | [CodePen](https://codepen.io/TTedd/pen/mdaYVpg?editors=1011) |
| 119 | Tina02 | [CodePen](https://codepen.io/chjitlox-the-bashful/pen/WNLBpeV) |
| 120 | QOO | [CodePen](https://codepen.io/QOOQOOQ/pen/zYybLbd?editors=0012) |
| 121 | jojo2824 | [CodePen](https://codepen.io/joanne-wei/pen/eYbaWGL?editors=0010) |
| 122 | 郭芙蘭#6374| [CodePen](https://codepen.io/flora_Kuo/pen/VwqOyax?editors=1111) |
| 123 | JasonFu| [CodePen](https://codepen.io/jie-Fu/pen/WNLBdBG?editors=0110) |
| 124 | kebukeyi | [CodePen](https://codepen.io/kebukeyi/pen/jOXoQjg) |
| 125 | Vivian2857 | [CodePen](https://codepen.io/uojbohed-the-solid/pen/xxmNMMo?editors=1010) |
| 126 | Noah | [CodePen](https://codepen.io/lch1222/pen/BavgyoM?editors=1111) |
| 127 | yaoling.liang | [CodePen](https://codepen.io/Yao-Ling-L-/pen/OJremON) |
| 128 | Jeff | [CodePen](https://codepen.io/nonwaaa/pen/LYMKLax) |
| 129 | yuan2781 | [CodePen](https://codepen.io/ismebir/pen/vYvqpjz) |
| 130 | 阿賀#3700 | [CodePen](https://codepen.io/sungho/pen/NWeZdZo) |
| 131 | 地球儀 | [CodePen](https://codepen.io/dayday1222/pen/LYMKdox?editors=0010) |
| 132 | cosmos7755 | [CodePen](https://codepen.io/violet7755/pen/eYbzjEy) |
| 133 | 阿維#2569 | [CodePen](https://codepen.io/iijojpli-the-looper/pen/PoXMgZQ?editors=0011) |
| 134 | davidtt | [CodePen](https://codepen.io/David-Tsai/pen/QWzeeNJ?editors=0011) |
| 135 | 歐陽龍龍#1061 | [CodePen](https://codepen.io/dizzydog-rgb/pen/YzBKPOe) |
| 136 | 辣椒 | [Codepen](https://codepen.io/chilichen118/pen/eYxOyVY) |
| 137 | Toby | [Codepen](https://codepen.io/Toby-L/pen/JjxPvRG) |
|138|nikkita_3544|[CodePen](https://codepen.io/vanessa7259/pen/eYxpBKO)|
|139|ssshane|[CodePen](https://codepen.io/sam6091260/pen/OJdNBKj?editors=1010)|
| 140 | Martin | [CodePen]([網址](https://codepen.io/markyourpage/pen/vYbKRJg)) |
| 141 | Rochel | [Codepen](https://codepen.io/rochelwang1205/pen/NWojaom)|
| 142 | Macu Huang | [Codepen](https://codepen.io/macy1215/pen/VwgXNNW?editors=1111)|
| 143 | bf_tsai | [CodePen](https://codepen.io/BF-Tsai/pen/GRzBePe?editors=1111) |
| 144 | NathanJames | [CodePen](https://codepen.io/ufo060204/pen/VwgGrdX) |
| 145 | Hao2485 | [CodePen](https://codepen.io/Seanfeb16/pen/mdoogrj) |
| 146 | 雪維 | [Codepen](https://codepen.io/Shawey/pen/VYZXdYG) |
 <!-- 快速複製
| 順序 | 名稱 | [CodePen](網址) |

-->
